diff --git a/packages/cli/test/unit/build.test.js b/packages/cli/test/unit/build.test.js index 924fb32016..09d51058c1 100644 --- a/packages/cli/test/unit/build.test.js +++ b/packages/cli/test/unit/build.test.js @@ -44,25 +44,6 @@ describe('build', () => { expect(process.exit).toHaveBeenCalled() }) - test('build with devtools', async () => { - mockGetNuxt({ - mode: 'universal' - }) - const builder = mockGetBuilder(Promise.resolve()) - - const cmd = NuxtCommand.from(build) - const args = ['build', '.', '--devtools'] - const argv = cmd.getArgv(args) - argv._ = ['.'] - - const options = await cmd.getNuxtConfig(argv) - - await cmd.run() - - expect(options.vue.config.devtools).toBe(true) - expect(builder).toHaveBeenCalled() - }) - test('build with modern mode', async () => { mockGetNuxt({ mode: 'universal' diff --git a/packages/cli/test/unit/generate.test.js b/packages/cli/test/unit/generate.test.js index 9c17b35c78..5e57bfa84d 100644 --- a/packages/cli/test/unit/generate.test.js +++ b/packages/cli/test/unit/generate.test.js @@ -46,24 +46,6 @@ describe('generate', () => { Command.prototype.getArgv = getArgv }) - test('build with devtools', async () => { - mockGetNuxt() - const generator = mockGetGenerator(Promise.resolve()) - - const cmd = NuxtCommand.from(generate) - const args = ['generate', '.', '--devtools'] - const argv = cmd.getArgv(args) - argv._ = ['.'] - - const options = await cmd.getNuxtConfig(argv) - - await cmd.run() - - expect(options.vue.config.devtools).toBe(true) - expect(generator).toHaveBeenCalled() - expect(generator.mock.calls[0][0].build).toBe(true) - }) - test('generate with modern mode', async () => { mockGetNuxt() mockGetGenerator(Promise.resolve())