Skip to content

Commit

Permalink
Added an integration test for deprecated cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
Aftabnack committed Feb 13, 2018
1 parent 82702f1 commit 1c2b47c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
21 changes: 21 additions & 0 deletions integration-tests/__tests__/deprecated-cli-options.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const path = require('path');
const runJest = require('../runJest');

const dir = path.resolve(__dirname, '../deprecated-cli-options');

it('Prints deprecation warnings for CLI flags', () => {
const {stderr, stdout, status} = runJest(dir);
expect(status).toBe(0);
expect(stderr).toMatch(/Test Suites: 1 passed, 1 total/);
});
3 changes: 3 additions & 0 deletions integration-tests/deprecated-cli-options/__tests__/dummy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test('Dummy', () => {
expect(2).toBe(2);
});
3 changes: 3 additions & 0 deletions integration-tests/deprecated-cli-options/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"jest": {}
}
1 change: 0 additions & 1 deletion packages/jest-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"graceful-fs": "^4.1.11",
"is-ci": "^1.0.10",
"jest-message-util": "^22.2.0",
"jest-validate": "^22.2.2",
"mkdirp": "^0.5.1"
},
"devDependencies": {
Expand Down

0 comments on commit 1c2b47c

Please sign in to comment.