Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
12208117
Commit
12208117
authored
Jun 13, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate tsconfig for jest tests
parent
9d067f4c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
jest.config.ts
jest.config.ts
+10
-0
tsconfig.jest.json
tsconfig.jest.json
+21
-0
tsconfig.json
tsconfig.json
+1
-1
No files found.
jest.config.ts
View file @
12208117
...
...
@@ -26,6 +26,16 @@ const config: JestConfigWithTsJest = {
'
<rootDir>/jest/setup.ts
'
,
],
testEnvironment
:
'
jsdom
'
,
transform
:
{
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
'
^.+
\\
.tsx?$
'
:
[
'
ts-jest
'
,
{
tsconfig
:
'
tsconfig.jest.json
'
,
},
],
},
};
export
default
config
;
tsconfig.jest.json
0 → 100644
View file @
12208117
{
"compilerOptions"
:
{
"target"
:
"es6"
,
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"allowJs"
:
true
,
"skipLibCheck"
:
true
,
"strict"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
"noEmit"
:
true
,
"esModuleInterop"
:
true
,
"module"
:
"esnext"
,
"moduleResolution"
:
"node"
,
"resolveJsonModule"
:
true
,
"isolatedModules"
:
true
,
"jsx"
:
"react"
,
"incremental"
:
true
,
"baseUrl"
:
"."
,
},
"include"
:
[
"next-env.d.ts"
,
"**/*.ts"
,
"**/*.tsx"
,
"decs.d.ts"
,
"global.d.ts"
],
"exclude"
:
[
"node_modules"
,
"node_modules_linux"
],
}
tsconfig.json
View file @
12208117
...
...
@@ -12,7 +12,7 @@
"moduleResolution"
:
"node"
,
"resolveJsonModule"
:
true
,
"isolatedModules"
:
true
,
"jsx"
:
"
react
"
,
"jsx"
:
"
preserve
"
,
"incremental"
:
true
,
"baseUrl"
:
"."
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment