Skip to content

Commit

Permalink
updated dev dependencies and configuration (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubikowski authored May 27, 2024
1 parent 63b9465 commit 94a3f60
Show file tree
Hide file tree
Showing 10 changed files with 4,349 additions and 9,747 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"plugins": [
"@typescript-eslint",
Expand Down
13 changes: 0 additions & 13 deletions babel.config.json

This file was deleted.

22 changes: 20 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ const config: Config = {
// Make calling deprecated APIs throw helpful error messages
// errorOnDeprecated: false,

extensionsToTreatAsEsm: [
'.ts',
],

// The default configuration for fake timers
// fakeTimers: {
// "enableGlobally": false
Expand Down Expand Up @@ -102,7 +106,9 @@ const config: Config = {
// ],

// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// moduleNameMapper: {},
moduleNameMapper: {
'(.+)\\.js': '$1',
},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
Expand Down Expand Up @@ -187,7 +193,19 @@ const config: Config = {
// testRunner: "jest-circus/runner",

// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
'\\.[jt]sx?$': [
'ts-jest',
{
useESM: true,
diagnostics: {
ignoreCodes: [
'TS151001',
],
},
},
],
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit 94a3f60

Please sign in to comment.