test: re-enable accidentally disabled unit tests 🙈

This commit is contained in:
Daniel Roe 2023-12-19 20:03:09 +00:00
parent 5de779a7de
commit b443de230e
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
3 changed files with 14 additions and 14 deletions

View File

@ -27,7 +27,7 @@
"test:fixtures:webpack": "TEST_BUILDER=webpack pnpm test:fixtures", "test:fixtures:webpack": "TEST_BUILDER=webpack pnpm test:fixtures",
"test:runtime": "vitest -c vitest.nuxt.config.ts --coverage", "test:runtime": "vitest -c vitest.nuxt.config.ts --coverage",
"test:types": "pnpm --filter './test/fixtures/**' test:types", "test:types": "pnpm --filter './test/fixtures/**' test:types",
"test:unit": "vitest run --dir packages --coverage", "test:unit": "vitest run packages/ --coverage",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"resolutions": { "resolutions": {

View File

@ -43,6 +43,10 @@ describe('resolveApp', () => {
"mode": "client", "mode": "client",
"src": "<repoRoot>/packages/nuxt/src/app/plugins/payload.client.ts", "src": "<repoRoot>/packages/nuxt/src/app/plugins/payload.client.ts",
}, },
{
"mode": "client",
"src": "<repoRoot>/packages/nuxt/src/app/plugins/check-outdated-build.client.ts",
},
{ {
"mode": "server", "mode": "server",
"src": "<repoRoot>/packages/nuxt/src/app/plugins/revive-payload.server.ts", "src": "<repoRoot>/packages/nuxt/src/app/plugins/revive-payload.server.ts",
@ -69,10 +73,6 @@ describe('resolveApp', () => {
"mode": "client", "mode": "client",
"src": "<repoRoot>/packages/nuxt/src/app/plugins/chunk-reload.client.ts", "src": "<repoRoot>/packages/nuxt/src/app/plugins/chunk-reload.client.ts",
}, },
{
"mode": "client",
"src": "<repoRoot>/packages/nuxt/src/app/plugins/check-outdated-build.client.ts",
},
], ],
"rootComponent": "<repoRoot>/packages/nuxt/src/app/components/nuxt-root.vue", "rootComponent": "<repoRoot>/packages/nuxt/src/app/components/nuxt-root.vue",
"templates": [], "templates": [],

View File

@ -202,11 +202,11 @@ describe('islandTransform - server and island components', () => {
<!-- should not be wrapped by NuxtTeleportSsrClient --> <!-- should not be wrapped by NuxtTeleportSsrClient -->
<HelloWorld /> <HelloWorld />
<!-- should be wrapped by NuxtTeleportSsrClient with a rootDir attr --> <!-- should be wrapped by NuxtTeleportSsrClient with a rootDir attr -->
<NuxtTeleportSsrClient to=\\"HelloWorld-PIVollAJCe\\" root-dir=\\"/root\\" :nuxt-client=\\"true\\"><HelloWorld /></NuxtTeleportSsrClient> <NuxtTeleportSsrClient to="HelloWorld-PIVollAJCe" root-dir="/root" :nuxt-client="true"><HelloWorld /></NuxtTeleportSsrClient>
</div> </div>
</template> </template>
<script setup lang=\\"ts\\"> <script setup lang="ts">
import { vforToArray as __vforToArray } from '#app/components/utils' import { vforToArray as __vforToArray } from '#app/components/utils'
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client' import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
import HelloWorld from './HelloWorld.vue' import HelloWorld from './HelloWorld.vue'
@ -234,11 +234,11 @@ describe('islandTransform - server and island components', () => {
"<template> "<template>
<div> <div>
<HelloWorld /> <HelloWorld />
<NuxtTeleportSsrClient to=\\"HelloWorld-CyH3UXLuYA\\" :nuxt-client=\\"true\\"><HelloWorld /></NuxtTeleportSsrClient> <NuxtTeleportSsrClient to="HelloWorld-CyH3UXLuYA" :nuxt-client="true"><HelloWorld /></NuxtTeleportSsrClient>
</div> </div>
</template> </template>
<script setup lang=\\"ts\\"> <script setup lang="ts">
import { vforToArray as __vforToArray } from '#app/components/utils' import { vforToArray as __vforToArray } from '#app/components/utils'
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client' import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
import HelloWorld from './HelloWorld.vue' import HelloWorld from './HelloWorld.vue'
@ -269,11 +269,11 @@ describe('islandTransform - server and island components', () => {
"<template> "<template>
<div> <div>
<HelloWorld /> <HelloWorld />
<NuxtTeleportSsrClient to=\\"HelloWorld-eo0XycWCUV\\" :nuxt-client=\\"nuxtClient\\"><HelloWorld :nuxt-client=\\"nuxtClient\\" /></NuxtTeleportSsrClient> <NuxtTeleportSsrClient to="HelloWorld-eo0XycWCUV" :nuxt-client="nuxtClient"><HelloWorld :nuxt-client="nuxtClient" /></NuxtTeleportSsrClient>
</div> </div>
</template> </template>
<script setup lang=\\"ts\\"> <script setup lang="ts">
import { vforToArray as __vforToArray } from '#app/components/utils' import { vforToArray as __vforToArray } from '#app/components/utils'
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client' import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
import HelloWorld from './HelloWorld.vue' import HelloWorld from './HelloWorld.vue'
@ -303,11 +303,11 @@ describe('islandTransform - server and island components', () => {
"<template> "<template>
<div> <div>
<HelloWorld /> <HelloWorld />
<HelloWorld :nuxt-client=\\"nuxtClient\\" /> <HelloWorld :nuxt-client="nuxtClient" />
</div> </div>
</template> </template>
<script setup lang=\\"ts\\"> <script setup lang="ts">
import { vforToArray as __vforToArray } from '#app/components/utils' import { vforToArray as __vforToArray } from '#app/components/utils'
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client' import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
import HelloWorld from './HelloWorld.vue' import HelloWorld from './HelloWorld.vue'
@ -349,7 +349,7 @@ describe('islandTransform - server and island components', () => {
</div> </div>
</template> </template>
<script setup lang=\\"ts\\"> <script setup lang="ts">
import { vforToArray as __vforToArray } from '#app/components/utils' import { vforToArray as __vforToArray } from '#app/components/utils'
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client' import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
import HelloWorld from './HelloWorld.vue' import HelloWorld from './HelloWorld.vue'