@@ -8,8 +8,8 @@ import { isWindows } from 'std-env'
88import { x } from 'tinyexec'
99import { describe , expect , it } from 'vitest'
1010
11- const fixtureDir = fileURLToPath ( new URL ( '../../../../ playground' , import . meta. url ) )
12- const nuxi = fileURLToPath ( new URL ( '../../ bin/nuxi .mjs' , import . meta. url ) )
11+ const fixtureDir = fileURLToPath ( new URL ( '../../../playground' , import . meta. url ) )
12+ const createNuxt = fileURLToPath ( new URL ( '../bin/create-nuxt .mjs' , import . meta. url ) )
1313
1414describe ( 'init command package name slugification' , ( ) => {
1515 it ( 'should slugify directory names with special characters' , { timeout : isWindows ? 200000 : 50000 } , async ( ) => {
@@ -19,7 +19,7 @@ describe('init command package name slugification', () => {
1919
2020 await rm ( installPath , { recursive : true , force : true } )
2121 try {
22- await x ( nuxi , [ 'init' , installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
22+ await x ( createNuxt , [ installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
2323 throwOnError : true ,
2424 nodeOptions : { stdio : 'inherit' , cwd : fixtureDir } ,
2525 } )
@@ -47,7 +47,7 @@ describe('init command package name slugification', () => {
4747
4848 await rm ( installPath , { recursive : true , force : true } )
4949 try {
50- await x ( nuxi , [ 'init' , installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
50+ await x ( createNuxt , [ installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
5151 throwOnError : true ,
5252 nodeOptions : { stdio : 'inherit' , cwd : fixtureDir } ,
5353 } )
@@ -74,7 +74,7 @@ describe('init command package name slugification', () => {
7474
7575 await rm ( installPath , { recursive : true , force : true } )
7676 try {
77- await x ( nuxi , [ 'init' , installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
77+ await x ( createNuxt , [ installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
7878 throwOnError : true ,
7979 nodeOptions : { stdio : 'inherit' , cwd : fixtureDir } ,
8080 } )
@@ -100,7 +100,7 @@ describe('init command package name slugification', () => {
100100
101101 await rm ( installPath , { recursive : true , force : true } )
102102 try {
103- await x ( nuxi , [ 'init' , installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
103+ await x ( createNuxt , [ installPath , '--packageManager=pnpm' , '--template=minimal' , '--gitInit=false' , '--preferOffline' , '--install=false' ] , {
104104 throwOnError : true ,
105105 nodeOptions : { stdio : 'inherit' , cwd : fixtureDir } ,
106106 } )
0 commit comments