mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-12 19:58:10 +00:00
test: prepare environment to ensure more reproducible dev tests
This commit is contained in:
parent
41d4973279
commit
bc89ef8678
@ -11,7 +11,7 @@
|
||||
"build": "pnpm --filter './packages/**' prepack",
|
||||
"build:stub": "pnpm dev:prepare",
|
||||
"dev": "pnpm play",
|
||||
"dev:prepare": "pnpm --filter './packages/**' prepack --stub && pnpm --filter './packages/ui-templates' build",
|
||||
"dev:prepare": "pnpm --filter './packages/**' prepack --stub && pnpm --filter './packages/ui-templates' build && nuxi prepare",
|
||||
"debug:prepare": "TIMINGS_DEBUG=true pnpm dev:prepare",
|
||||
"debug:build": "TIMINGS_DEBUG=true pnpm build",
|
||||
"debug:dev": "rm -rf **/node_modules/.cache/jiti && pnpm nuxi dev",
|
||||
|
@ -20,7 +20,7 @@ const nuxt = await loadNuxt({
|
||||
|
||||
describe('resolvePath', () => {
|
||||
it('should resolve paths correctly', async () => {
|
||||
expect(await resolvePath('.nuxt/app.config')).toBe(resolve(nuxt.options.buildDir, 'app.config'))
|
||||
expect(await resolvePath('.nuxt/app.config')).toBe(resolve(nuxt.options.buildDir, 'app.config.mjs'))
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user