Skip to content

Commit 8b331d8

Browse files
Пинчук Виталий АПинчук Виталий А
Пинчук Виталий А
authored and
Пинчук Виталий А
committed
@vue/test-utils testing without .vue files (but vue-class-component decorator)
1 parent d0cbb3b commit 8b331d8

File tree

7 files changed

+3
-626
lines changed

7 files changed

+3
-626
lines changed

jest.config.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
const tsConfig = './src/tsconfig.jest.json';
2-
31
const conf = {
42
// Базовую настройку jest под ts взять из рекомендованных
53
preset: 'ts-jest',
64
globals: {
75
'ts-jest': {
86
// Возможно использовать (исключены не сгенерённые ещё файлы *.html.js)
9-
tsConfig,
7+
tsConfig: './src/tsconfig.jest.json',
108
},
11-
'vue-jest': {
12-
babelConfig: false,
13-
tsConfig,
14-
}
159
},
1610
// Чтобы jest не смущали глобальные переменные браузера (console, window...)
1711
browser: true,
@@ -55,7 +49,6 @@ const conf = {
5549
'.*?\\.(ts|js)$': 'ts-jest',
5650
// using html-loader-jest not 'jest-transform-stub' for true template importing of non-.vue components
5751
'.*?\\.html$': 'html-loader-jest',
58-
'.*?\\.vue$': 'vue-jest',
5952
},
6053
// Исключаем нетранспилированный код ??? наш ts тоже нетранспилированный
6154
transformIgnorePatterns: [

0 commit comments

Comments
 (0)