-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
103 lines (103 loc) · 2.45 KB
/
package.json
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "jsdom-testing-mocks",
"version": "1.13.1",
"author": "Ivan Galiatin",
"license": "MIT",
"description": "A set of tools for emulating browser behavior in jsdom environment",
"repository": {
"type": "git",
"url": "git+https://github.com/trurl-master/jsdom-testing-mocks.git"
},
"keywords": [
"testing",
"jsdom",
"jest",
"vitest",
"mock",
"Resize Observer API",
"Intersection Observer API",
"Web Animations API",
"WAAPI",
"matchMedia",
"viewport",
"react"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"/dist",
"/src",
"!/src/**/__tests__/*",
"!/src/**/*.test.tsx",
"!/src/mocks/web-animations-api/testTools.ts"
],
"engines": {
"node": ">=14"
},
"scripts": {
"watch": "tsup --watch",
"build": "tsup",
"test:jest": "jest",
"test:swc": "jest --config ./swcjest.config.ts",
"test:vi": "vitest --config ./vitest.config.ts run",
"test:examples": "npm --prefix ./examples run test:all",
"test:all": "npm run test:jest && npm run test:vi && npm run test:swc && npm run test:examples",
"lint": "eslint src/ --ext .ts,.tsx",
"prepare": "tsup"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"module": "dist/esm/index.js",
"tsup": {
"entry": [
"src/index.ts"
],
"splitting": false,
"sourcemap": true,
"dts": true,
"format": [
"cjs",
"esm"
],
"clean": true,
"legacyOutput": true
},
"dependencies": {
"bezier-easing": "^2.1.0",
"css-mediaquery": "^0.1.2"
},
"devDependencies": {
"@swc/core": "^1.3.82",
"@swc/jest": "^0.2.29",
"@types/css-mediaquery": "^0.1.1",
"@types/jest": "^28.1.8",
"@types/testing-library__jest-dom": "^5.14.5",
"@typescript-eslint/eslint-plugin": "^5.30.3",
"@typescript-eslint/parser": "^5.30.3",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-react": "^7.30.1",
"husky": "4.2.3",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-fail-on-console": "^3.1.1",
"prettier": "^2.7.1",
"ts-jest": "^28.0.8",
"ts-node": "^10.8.2",
"tslib": "^2.4.0",
"tsup": "^6.1.3",
"type-fest": "^2.15.1",
"typescript": "^4.7.4",
"vitest": "^0.30.1"
}
}