-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix jest deprecation warnings (#2748)
- Loading branch information
1 parent
5a42c26
commit 7f14eff
Showing
3 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
const path = require('path'); | ||
const os = require('os'); | ||
const integConfig = require('./jest.integ.config'); | ||
|
||
module.exports = { | ||
verbose: true, | ||
testEnvironment: 'node', | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig.integ.json', | ||
}, | ||
}, | ||
reporters: ['default', 'github-actions'], | ||
testTimeout: 60_000, // 1min | ||
maxWorkers: os.cpus().length * (process.env.GITHUB_ACTION ? 3 : 1), | ||
globalSetup: '<rootDir>/build-tools/integ/global-setup.js', | ||
globalTeardown: '<rootDir>/build-tools/integ/global-teardown.js', | ||
...integConfig, | ||
setupFilesAfterEnv: [path.join(__dirname, 'build-tools', 'integ', 'setup.motion.js')], | ||
moduleFileExtensions: ['js', 'ts'], | ||
testRegex: '(/(__motion__)/.*(\\.|/)test)\\.[jt]sx?$', | ||
preset: 'ts-jest', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters