fix(typescript): Use consistent typescript configs - N8N-4552 (#4049)
fix(typescript): Use consistent typescript configs make all packages inherit tsconfig from the root tsconfig skips building tests. reformat all tsconfigs with prettier.
This commit is contained in:
committed by
GitHub
parent
2c7ef1e550
commit
9267e8fb12
@@ -1,16 +1,14 @@
|
||||
module.exports = {
|
||||
moduleFileExtensions: [
|
||||
'js',
|
||||
'jsx',
|
||||
'json',
|
||||
'vue',
|
||||
'ts',
|
||||
'tsx',
|
||||
],
|
||||
transform: {
|
||||
'^.+\\.vue$': 'vue-jest',
|
||||
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
|
||||
'^.+\\.tsx?$': 'ts-jest',
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
@@ -19,7 +17,7 @@ module.exports = {
|
||||
'jest-serializer-vue',
|
||||
],
|
||||
testMatch: [
|
||||
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
|
||||
'**/tests/unit/**/*.spec.(js|ts)|**/__tests__/*.(js|ts)',
|
||||
],
|
||||
testURL: 'http://localhost/',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user