diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-07-25 09:20:43 -0600 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-07-26 16:28:22 +0000 |
commit | 4bd3d6764bfd48c881d9722825309ddb5956c758 (patch) | |
tree | 53296e94d91ab2cdc57c4d32a1fbcee071ae7923 /jest.config.js | |
parent | chore: upgrade @octokit/core to latest (diff) | |
download | ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.tar.gz ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.tar.zst ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.zip |
style: reformat all files properly
- remove .json from .eslintignore
- add type intellisense to .prettierrc.js
- install missing @jest/types which is used in jest.config.js
- split up typecheck and lint into two separate commands
- remove --require-pragma flag from reformat-files which leads to unformatted files
- install suggested @types/prop-types and @types/react-loader dependencies
- add @ts-expect-error to Loader usages
- reformat all scss files automatically with reformat-files command
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jest.config.js b/jest.config.js index ba4ed9cd2..6639ca88b 100644 --- a/jest.config.js +++ b/jest.config.js | |||
@@ -1,8 +1,8 @@ | |||
1 | /** @type {import('@jest/types').Config.InitialOptions} */ | ||
2 | /* | 1 | /* |
3 | * For a detailed explanation regarding each configuration property and type check, visit: | 2 | * For a detailed explanation regarding each configuration property and type check, visit: |
4 | * https://jestjs.io/docs/configuration | 3 | * https://jestjs.io/docs/configuration |
5 | */ | 4 | */ |
5 | /** @type {import('@jest/types').Config.InitialOptions} */ | ||
6 | module.exports = { | 6 | module.exports = { |
7 | // Automatically clear mock calls, instances and results before every test | 7 | // Automatically clear mock calls, instances and results before every test |
8 | clearMocks: true, | 8 | clearMocks: true, |
@@ -31,8 +31,8 @@ module.exports = { | |||
31 | '/src/internal-server', | 31 | '/src/internal-server', |
32 | ], | 32 | ], |
33 | 33 | ||
34 | "transform": { | 34 | transform: { |
35 | "^.+\\.tsx?$": "esbuild-runner/jest", | 35 | '^.+\\.tsx?$': 'esbuild-runner/jest', |
36 | "^.+\\.ts?$": "esbuild-runner/jest" | 36 | '^.+\\.ts?$': 'esbuild-runner/jest', |
37 | } | 37 | }, |
38 | }; | 38 | }; |