mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
test: fix transform
This commit is contained in:
parent
3cedfa12cd
commit
374f61dd81
3 changed files with 5 additions and 3 deletions
2
__tests__/babel.config.js
Normal file
2
__tests__/babel.config.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// TS files cannot be transformed without this babel config
|
||||
module.exports = require('../babel.config')
|
||||
|
|
@ -144,7 +144,7 @@ module.exports = {
|
|||
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
|
||||
|
||||
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
||||
testPathIgnorePatterns: ['/node_modules/', '.d.ts$', '<rootDir>/vscode-icons/'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '.d.ts$'],
|
||||
|
||||
// The regexp pattern or array of patterns that Jest uses to detect test files
|
||||
// testRegex: [],
|
||||
|
|
@ -158,7 +158,7 @@ module.exports = {
|
|||
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
|
||||
// testURL: "http://localhost",
|
||||
|
||||
testTimeout: 20000,
|
||||
testTimeout: 30 * 1000,
|
||||
|
||||
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
|
||||
// timers: "real",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// `.babelrc` is not loaded by babel-loader for files under node_modules, but `babel.config/js` is
|
||||
// `.babelrc` is not loaded by babel-loader for files under node_modules, but `babel.config.js` is
|
||||
module.exports = {
|
||||
env: {
|
||||
test: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue