-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
64 lines (64 loc) · 2.46 KB
/
Copy pathpackage.json
File metadata and controls
64 lines (64 loc) · 2.46 KB
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
62
63
64
{
"name": "tntcomponents-js-tests",
"private": true,
"type": "module",
"devDependencies": {
"@oddbird/css-anchor-positioning": "0.10.1",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"terser": "^5.49.0",
"typescript": "^7.0.2"
},
"scripts": {
"build:head": "tsc -p tsconfig.head.json && node scripts/build-head-assets.mjs",
"compile:ts": "tsc -p tsconfig.json && tsc -p tsconfig.legacy.json",
"build:ts": "npm run compile:ts && npm run build:head",
"build:ts:release": "npm run compile:ts && node scripts/minify-typescript.mjs && npm run build:head",
"build:rich-text-editor": "tsc -p tsconfig.json --pretty false",
"build:rich-text-editor:release": "tsc -p tsconfig.json --pretty false && terser NTComponents/Editors/NTRichTextEditor.razor.js --module --compress --comments false --output NTComponents/Editors/NTRichTextEditor.razor.js && terser NTComponents/Shapes/NTShape.razor.js --module --compress --comments false --output NTComponents/Shapes/NTShape.razor.js",
"pretest": "npm run build:ts",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:js": "npm run test"
},
"jest": {
"testEnvironment": "jsdom",
"roots": [
"<rootDir>/NTComponents/Carousel/__tests__",
"<rootDir>/NTComponents/Tooltip/__tests__",
"<rootDir>/NTComponents/Core/__tests__",
"<rootDir>/NTComponents/Accordion/__tests__",
"<rootDir>/NTComponents/Animation/__tests__",
"<rootDir>/NTComponents/Editors/__tests__",
"<rootDir>/NTComponents/Shapes/__tests__",
"<rootDir>/NTComponents/TabView/__tests__",
"<rootDir>/NTComponents/Theming/__tests__",
"<rootDir>/NTComponents/Typeahead/__tests__",
"<rootDir>/NTComponents/Form/__tests__",
"<rootDir>/NTComponents/Layout/Views/__tests__",
"<rootDir>/NTComponents/NavRail/__tests__",
"<rootDir>/NTComponents/Progress/__tests__",
"<rootDir>/Tests/NTComponents.Tests/wwwroot"
],
"setupFiles": [
"<rootDir>/NTComponents/Carousel/jest.setup.js"
],
"setupFilesAfterEnv": [
"<rootDir>/NTComponents/Editors/__tests__/jest.setup.js"
],
"moduleFileExtensions": [
"js",
"mjs"
],
"transform": {},
"testMatch": [
"**/__tests__/**/*.test.js",
"**/__tests__/**/*.spec.js",
"**/Tests/NTComponents.Tests/**/*.test.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"jest.global.js",
"jest.setup.js"
]
}
}