forked from prettier-solidity/prettier-plugin-solidity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
29 lines (28 loc) · 839 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const TEST_STANDALONE = Boolean(process.env.TEST_STANDALONE);
module.exports = {
runner: 'jest-light-runner',
setupFiles: ['<rootDir>/tests/config/setup.js'],
snapshotSerializers: [
'jest-snapshot-serializer-raw',
'jest-snapshot-serializer-ansi'
],
testEnvironment: 'node',
// ignore console warnings in TEST_STANDALONE
silent: TEST_STANDALONE,
testPathIgnorePatterns: TEST_STANDALONE
? [
// Standalone mode doesn't have default options.
// This has been reported https://github.com/prettier/prettier/issues/11107
'tests/format/RespectDefaultOptions'
]
: [],
testMatch: [
'<rootDir>/tests/format/**/jsfmt.spec.js',
'<rootDir>/tests/unit/**/*.js'
],
transform: {},
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
};