mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 16:09:52 +00:00
test: add major version to unit test
This commit is contained in:
parent
a85ca58382
commit
676447239e
@ -15,7 +15,7 @@ describe('loadNuxt', () => {
|
||||
beforeAll(async () => {
|
||||
await mkdir(join(tempDir, 'nuxt'), { recursive: true })
|
||||
await writeFile(join(tempDir, 'package.json'), '{"dependencies":{"nuxt":"file:./nuxt"}}')
|
||||
await writeFile(join(tempDir, 'nuxt', 'package.json'), '{"name":"nuxt","type":"module","exports":{".":"./index.js"}}')
|
||||
await writeFile(join(tempDir, 'nuxt', 'package.json'), '{"name":"nuxt","version":"3.0.0","type":"module","exports":{".":"./index.js"}}')
|
||||
await writeFile(join(tempDir, 'nuxt', 'index.js'), 'export const loadNuxt = (opts) => ({ name: "it me" })')
|
||||
await x('npm', ['install'], { nodeOptions: { cwd: tempDir } })
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user