Skip to content

Commit

Permalink
Fix jest configs
Browse files Browse the repository at this point in the history
  • Loading branch information
vponline committed Oct 17, 2023
1 parent 5079628 commit 9f17b99
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module.exports = {
// TODO this can be removed after removing non-camelcased config values
camelcase: 'off',

// Typescript
'@typescript-eslint/no-var-requires': 'off',

// Jest
'jest/no-hooks': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion jest-e2e.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from './jest.config';
const config = require('./jest.config');

module.exports = {
...config,
Expand Down
2 changes: 1 addition & 1 deletion jest-unit.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from './jest.config';
const config = require('./jest.config');

module.exports = {
...config,
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'node:path';
const { join } = require('node:path');

/*
* For a detailed explanation regarding each configuration property and type check, visit:
Expand Down

0 comments on commit 9f17b99

Please sign in to comment.