diff --git a/package-lock.json b/package-lock.json index ed4b51a..5be6749 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10848,10 +10848,6 @@ "uuid": "bin/uuid" } }, - "node_modules/test-app": { - "resolved": "packages/test-app", - "link": true - }, "node_modules/text-extensions": { "version": "1.9.0", "dev": true, @@ -12805,9 +12801,6 @@ "engines": { "node": "^14.18.2 || ^16 || ^17" } - }, - "packages/test-app": { - "version": "0.1.0" } }, "dependencies": { @@ -20139,9 +20132,6 @@ } } }, - "test-app": { - "version": "file:packages/test-app" - }, "text-extensions": { "version": "1.9.0", "dev": true diff --git a/packages/cli-tool/test/commands/generate/index.test.ts b/packages/cli-tool/test/commands/generate/index.test.ts index 75bcaeb..bddbe24 100644 --- a/packages/cli-tool/test/commands/generate/index.test.ts +++ b/packages/cli-tool/test/commands/generate/index.test.ts @@ -8,8 +8,8 @@ import { tailwindCssTestData } from '../../add-ons/ui-framework/tailwind-css'; import { gitHubTestData, gitLabTestData, noVersionControlTestData } from '../../add-ons/version-control'; import { TestScenario } from '../../helpers/test-scenario'; -const craRepoPath = `file:./react-templates/packages/cra-template`; -const viteBranch = 'feature/gh88-replace-webpack-with-vite'; +const craTemplateReference = `file:./react-templates/packages/cra-template`; +const viteTemplateReference = 'feature/gh88-replace-webpack-with-vite'; const projectName = 'test-app'; const testFolderPath = '../../../'; @@ -126,7 +126,7 @@ describe('generate', () => { test .stdout() .stub(Inquirer, 'prompt', () => scenario.options) - .command(['generate', `${projectName}`, scenario.options.template === 'vite' ? viteBranch : craRepoPath, testFolderPath]) + .command(['generate', `${projectName}`, testFolderPath, scenario.options.template === 'vite' ? viteTemplateReference : craTemplateReference]) .it( `generates a ${scenario.options.template} app ${projectName} with ${scenario.options.versionControl} and ${scenario.options.uiFramework}`, (ctx) => {