Skip to content

Commit a6a2f24

Browse files
committed
chore: update tool-chain deps
1 parent c4c3d75 commit a6a2f24

File tree

10 files changed

+8893
-10207
lines changed

10 files changed

+8893
-10207
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['@opd/eslint-config-pangu'],
3-
};
2+
extends: ['@pixas/eslint-config'],
3+
}

babel.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
presets: [
33
[
4-
'@babel/preset-env',
4+
'@pixas/babel-preset-lib',
55
{
66
useBuiltIns: 'usage',
77
corejs: 3,
@@ -10,6 +10,5 @@ module.exports = {
1010
},
1111
},
1212
],
13-
'@babel/preset-typescript',
1413
],
1514
}

jest.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

jest.config.ts

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
/**
2+
* For a detailed explanation regarding each configuration property, visit:
3+
* https://jestjs.io/docs/configuration
4+
*/
5+
6+
import type { Config } from 'jest';
7+
8+
const config: Config = {
9+
// All imported modules in your tests should be mocked automatically
10+
// automock: false,
11+
12+
// Stop running tests after `n` failures
13+
// bail: 0,
14+
15+
// The directory where Jest should store its cached dependency information
16+
// cacheDirectory: "/private/var/folders/0k/35145pt5371_x5c09bkz8l580000gn/T/jest_dx",
17+
18+
// Automatically clear mock calls, instances, contexts and results before every test
19+
clearMocks: true,
20+
21+
// Indicates whether the coverage information should be collected while executing the test
22+
collectCoverage: true,
23+
24+
// An array of glob patterns indicating a set of files for which coverage information should be collected
25+
// collectCoverageFrom: undefined,
26+
27+
// The directory where Jest should output its coverage files
28+
coverageDirectory: 'coverage',
29+
30+
// An array of regexp pattern strings used to skip coverage collection
31+
// coveragePathIgnorePatterns: [
32+
// "/node_modules/"
33+
// ],
34+
35+
// Indicates which provider should be used to instrument code for coverage
36+
// coverageProvider: "babel",
37+
38+
// A list of reporter names that Jest uses when writing coverage reports
39+
// coverageReporters: ['json', 'text', 'lcov', 'clover'],
40+
41+
// An object that configures minimum threshold enforcement for coverage results
42+
// coverageThreshold: undefined,
43+
44+
// A path to a custom dependency extractor
45+
// dependencyExtractor: undefined,
46+
47+
// Make calling deprecated APIs throw helpful error messages
48+
// errorOnDeprecated: false,
49+
50+
// The default configuration for fake timers
51+
// fakeTimers: {
52+
// "enableGlobally": false
53+
// },
54+
55+
// Force coverage collection from ignored files using an array of glob patterns
56+
// forceCoverageMatch: [],
57+
58+
// A path to a module which exports an async function that is triggered once before all test suites
59+
// globalSetup: undefined,
60+
61+
// A path to a module which exports an async function that is triggered once after all test suites
62+
// globalTeardown: undefined,
63+
64+
// A set of global variables that need to be available in all test environments
65+
// globals: {},
66+
67+
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
68+
// maxWorkers: "50%",
69+
70+
// An array of directory names to be searched recursively up from the requiring module's location
71+
// moduleDirectories: [
72+
// "node_modules"
73+
// ],
74+
75+
// An array of file extensions your modules use
76+
// moduleFileExtensions: [
77+
// "js",
78+
// "mjs",
79+
// "cjs",
80+
// "jsx",
81+
// "ts",
82+
// "tsx",
83+
// "json",
84+
// "node"
85+
// ],
86+
87+
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
88+
// moduleNameMapper: {},
89+
90+
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
91+
// modulePathIgnorePatterns: [],
92+
93+
// Activates notifications for test results
94+
// notify: false,
95+
96+
// An enum that specifies notification mode. Requires { notify: true }
97+
// notifyMode: "failure-change",
98+
99+
// A preset that is used as a base for Jest's configuration
100+
// preset: undefined,
101+
102+
// Run tests from one or more projects
103+
// projects: undefined,
104+
105+
// Use this configuration option to add custom reporters to Jest
106+
// reporters: undefined,
107+
108+
// Automatically reset mock state before every test
109+
// resetMocks: false,
110+
111+
// Reset the module registry before running each individual test
112+
// resetModules: false,
113+
114+
// A path to a custom resolver
115+
// resolver: undefined,
116+
117+
// Automatically restore mock state and implementation before every test
118+
// restoreMocks: false,
119+
120+
// The root directory that Jest should scan for tests and modules within
121+
// rootDir: undefined,
122+
123+
// A list of paths to directories that Jest should use to search for files in
124+
// roots: [
125+
// "<rootDir>"
126+
// ],
127+
128+
// Allows you to use a custom runner instead of Jest's default test runner
129+
// runner: "jest-runner",
130+
131+
// The paths to modules that run some code to configure or set up the testing environment before each test
132+
// setupFiles: [],
133+
134+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
135+
// setupFilesAfterEnv: [],
136+
137+
// The number of seconds after which a test is considered as slow and reported as such in the results.
138+
// slowTestThreshold: 5,
139+
140+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
141+
// snapshotSerializers: [],
142+
143+
// The test environment that will be used for testing
144+
// testEnvironment: "jest-environment-node",
145+
146+
// Options that will be passed to the testEnvironment
147+
// testEnvironmentOptions: {},
148+
149+
// Adds a location field to test results
150+
// testLocationInResults: false,
151+
152+
// The glob patterns Jest uses to detect test files
153+
testMatch: ['**/test/**/?(*.)+(spec|test).[tj]s?(x)'],
154+
155+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
156+
// testPathIgnorePatterns: [
157+
// "/node_modules/"
158+
// ],
159+
160+
// The regexp pattern or array of patterns that Jest uses to detect test files
161+
// testRegex: [],
162+
163+
// This option allows the use of a custom results processor
164+
// testResultsProcessor: undefined,
165+
166+
// This option allows use of a custom test runner
167+
// testRunner: "jest-circus/runner",
168+
169+
// A map from regular expressions to paths to transformers
170+
// transform: undefined,
171+
172+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
173+
// transformIgnorePatterns: [
174+
// "/node_modules/",
175+
// "\\.pnp\\.[^\\/]+$"
176+
// ],
177+
178+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
179+
// unmockedModulePathPatterns: undefined,
180+
181+
// Indicates whether each individual test should be reported during the run
182+
// verbose: undefined,
183+
184+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
185+
// watchPathIgnorePatterns: [],
186+
187+
// Whether to use watchman for file crawling
188+
// watchman: true,
189+
};
190+
191+
export default config;

0 commit comments

Comments
 (0)