Skip to content

chore: update command and add builder to workspace #1451

chore: update command and add builder to workspace

chore: update command and add builder to workspace #1451

Triggered via pull request January 8, 2025 14:27
Status Failure
Total duration 1m 30s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
test/build.spec.ts > module builder > should generate types when no ModuleOptions are exported: test/build.spec.ts#L78
Error: Snapshot `module builder > should generate types when no ModuleOptions are exported 1` mismatched - Expected + Received @@ -1,8 +1,6 @@ - "import type { NuxtModule } from '@nuxt/schema' - - import type { default as Module, ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module.mjs' + "import type { ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module.mjs' declare module '#app' { interface RuntimeNuxtHooks extends ModuleRuntimeHooks {} } @@ -10,9 +8,7 @@ interface NuxtHooks extends ModuleHooks {} interface RuntimeConfig extends ModuleRuntimeConfig {} interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {} } - export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any> - - export { type ModuleHooks, type ModulePublicRuntimeConfig, type ModuleRuntimeConfig, type ModuleRuntimeHooks, default } from './module.mjs' + export * from "./module.mjs" " ❯ test/build.spec.ts:78:19
ci (windows-latest)
Process completed with exit code 1.
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ci (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636