Skip to content
Merged
Prev Previous commit
Next Next commit
Cleanup tests
  • Loading branch information
Esemesek committed Apr 5, 2019
commit da844c58e04a738831ce68eafcb0535371273bbd
14 changes: 0 additions & 14 deletions e2e/__tests__/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,3 @@ test('init --template file:/tmp/custom/template', () => {

expect(stdout).toContain('Run instructions');
});

test('init --verbose', () => {
const {stdout} = run(DIR, [
'init',
'--template',
'react-native-new-template',
'TestInit',
'--verbose',
]);

expect(stdout).toContain('Initializing new project');
expect(stdout).toContain('No lockfile found');
expect(stdout).toContain('Run instructions');
});
1 change: 1 addition & 0 deletions packages/cli/src/commands/init/__tests__/template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const TEMPLATE_NAME = 'templateName';

afterEach(() => {
jest.restoreAllMocks();
jest.clearAllMocks();
});

test('installTemplatePackage', async () => {
Expand Down