Skip to content

Commit

Permalink
chore: revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Jan 30, 2024
1 parent a967dd5 commit bcfb4e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cli.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const resolver = createRequire(import.meta.url)

export default tester(
{
api: async () => {
'ONLY api': async () => {
await fs.outputFile(
'server/api/foo.get.js',
endent`
Expand All @@ -26,11 +26,9 @@ export default tester(
`,
)

const nuxt = execa(resolver.resolve('./cli.js'), ['dev'], { stdio: 'inherit' })
const nuxt = execa(resolver.resolve('./cli.js'), ['dev'])
try {
console.log('starting')
await nuxtDevReady()
console.log('ready')

const result =
axios.get('http://localhost:3000/api/foo')
Expand All @@ -48,7 +46,7 @@ export default tester(
)
await execa(resolver.resolve('./cli.js'), ['build'])
},
async build() {
async 'ONLY build'() {
await fs.outputFile(
'pages/index.vue',
endent`
Expand Down

0 comments on commit bcfb4e3

Please sign in to comment.