From d9d30b294b7871ae3bce7c56c3fa3230fa4cdf83 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Tue, 20 Apr 2021 12:29:19 +0530 Subject: [PATCH] test: improve test suite --- test/integration/{ => create-react-app}/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/integration/{ => create-react-app}/index.test.js (95%) diff --git a/test/integration/index.test.js b/test/integration/create-react-app/index.test.js similarity index 95% rename from test/integration/index.test.js rename to test/integration/create-react-app/index.test.js index 5cd123c25b0..875fd8ca348 100644 --- a/test/integration/index.test.js +++ b/test/integration/create-react-app/index.test.js @@ -14,7 +14,7 @@ const genPath = join(__dirname, projectName); const generatedFiles = ['.gitignore', 'package.json', 'src', 'yarn.lock']; beforeEach(() => remove(genPath)); -afterEach(() => remove(genPath)); +afterAll(() => remove(genPath)); const run = (args, options) => execa('node', [cli].concat(args), options); @@ -77,7 +77,7 @@ describe('create-react-app', () => { ); }); - it('creates a project in the current based on the typescript template', async () => { + it('creates a project based on the typescript template', async () => { await run([projectName, '--template', 'typescript'], { cwd: __dirname, });