mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
9267e8fb12
fix(typescript): Use consistent typescript configs make all packages inherit tsconfig from the root tsconfig skips building tests. reformat all tsconfigs with prettier.
24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
module.exports = {
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'json',
|
|
'vue',
|
|
'ts',
|
|
],
|
|
transform: {
|
|
'^.+\\.vue$': 'vue-jest',
|
|
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
snapshotSerializers: [
|
|
'jest-serializer-vue',
|
|
],
|
|
testMatch: [
|
|
'**/tests/unit/**/*.spec.(js|ts)|**/__tests__/*.(js|ts)',
|
|
],
|
|
testURL: 'http://localhost/',
|
|
};
|