mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
test: re-enable accidentally disabled unit tests 🙈
This commit is contained in:
parent
5de779a7de
commit
b443de230e
@ -27,7 +27,7 @@
|
||||
"test:fixtures:webpack": "TEST_BUILDER=webpack pnpm test:fixtures",
|
||||
"test:runtime": "vitest -c vitest.nuxt.config.ts --coverage",
|
||||
"test:types": "pnpm --filter './test/fixtures/**' test:types",
|
||||
"test:unit": "vitest run --dir packages --coverage",
|
||||
"test:unit": "vitest run packages/ --coverage",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"resolutions": {
|
||||
|
@ -43,6 +43,10 @@ describe('resolveApp', () => {
|
||||
"mode": "client",
|
||||
"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",
|
||||
"src": "<repoRoot>/packages/nuxt/src/app/plugins/revive-payload.server.ts",
|
||||
@ -69,10 +73,6 @@ describe('resolveApp', () => {
|
||||
"mode": "client",
|
||||
"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",
|
||||
"templates": [],
|
||||
|
@ -202,11 +202,11 @@ describe('islandTransform - server and island components', () => {
|
||||
<!-- should not be wrapped by NuxtTeleportSsrClient -->
|
||||
<HelloWorld />
|
||||
<!-- 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>
|
||||
</template>
|
||||
|
||||
<script setup lang=\\"ts\\">
|
||||
<script setup lang="ts">
|
||||
import { vforToArray as __vforToArray } from '#app/components/utils'
|
||||
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
|
||||
import HelloWorld from './HelloWorld.vue'
|
||||
@ -234,11 +234,11 @@ describe('islandTransform - server and island components', () => {
|
||||
"<template>
|
||||
<div>
|
||||
<HelloWorld />
|
||||
<NuxtTeleportSsrClient to=\\"HelloWorld-CyH3UXLuYA\\" :nuxt-client=\\"true\\"><HelloWorld /></NuxtTeleportSsrClient>
|
||||
<NuxtTeleportSsrClient to="HelloWorld-CyH3UXLuYA" :nuxt-client="true"><HelloWorld /></NuxtTeleportSsrClient>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang=\\"ts\\">
|
||||
<script setup lang="ts">
|
||||
import { vforToArray as __vforToArray } from '#app/components/utils'
|
||||
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
|
||||
import HelloWorld from './HelloWorld.vue'
|
||||
@ -269,11 +269,11 @@ describe('islandTransform - server and island components', () => {
|
||||
"<template>
|
||||
<div>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
<script setup lang=\\"ts\\">
|
||||
<script setup lang="ts">
|
||||
import { vforToArray as __vforToArray } from '#app/components/utils'
|
||||
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
|
||||
import HelloWorld from './HelloWorld.vue'
|
||||
@ -303,11 +303,11 @@ describe('islandTransform - server and island components', () => {
|
||||
"<template>
|
||||
<div>
|
||||
<HelloWorld />
|
||||
<HelloWorld :nuxt-client=\\"nuxtClient\\" />
|
||||
<HelloWorld :nuxt-client="nuxtClient" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang=\\"ts\\">
|
||||
<script setup lang="ts">
|
||||
import { vforToArray as __vforToArray } from '#app/components/utils'
|
||||
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
|
||||
import HelloWorld from './HelloWorld.vue'
|
||||
@ -349,7 +349,7 @@ describe('islandTransform - server and island components', () => {
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang=\\"ts\\">
|
||||
<script setup lang="ts">
|
||||
import { vforToArray as __vforToArray } from '#app/components/utils'
|
||||
import NuxtTeleportSsrClient from '#app/components/nuxt-teleport-ssr-client'
|
||||
import HelloWorld from './HelloWorld.vue'
|
||||
|
Loading…
Reference in New Issue
Block a user