-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
61 lines (61 loc) · 1.42 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
transform: {
"^.+\\.vue$": "@vue/vue3-jest"
},
expand: true,
displayName: {
name: "vue3-extended-multiselect",
color: "bgGreen",
},
extraGlobals: [],
globals: {
OPTIONS: [
{ label: "First Option", customLabel: "First Option Custom Label" },
{ label: "Second Option" },
{ label: "Third Option", searchByField: "First" },
126,
],
INPUT_ID: "vue3-extended-multiselect-input-1",
SEARCH_VALUE: "Search for options",
SEARCH_VALUE_WITH_RESULTS: "First",
MORE_THAN_LIMIT: "You have to select no more than one option",
LESS_THAN_LIMIT: "You have to select at least two options",
},
include: [
"<rootDir>/components/ExtendedMultiselectOptions.vue",
],
injectGlobals: true,
moduleFileExtensions: [
"ts",
"tsx",
"js",
"json",
"jsx",
"mjs",
"node",
"vue"
],
moduleNameMapper: {
"\\.svg$" : "<rootDir>/tests/utils/stubs",
"\\.scss$" : "identity-obj-proxy",
},
resetModules: true,
resetMocks: true,
rootDir: "./",
setupFiles: ["<rootDir>/tests/utils/mocks"],
slowTestThreshold: 20,
testEnvironment: "jsdom",
testLocationInResults: true,
testMatch: [
"**/tests/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[tj]s?(x)"
],
testPathIgnorePatterns: [
"tests/utils"
],
transformIgnorePatterns: [
"<rootDir>/node_modules/"
],
timers: "real",
}