forked from Schweiger-Lab/schweiger-lab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 1.98 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 loc) · 1.98 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
{
"name": "schweiger-lab-website",
"version": "1.0.0",
"description": "Testing suite for Schweiger Lab Jekyll website",
"scripts": {
"test": "jest --verbose",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:pbt": "jest --testNamePattern='Property'",
"test:unit": "jest --testNamePattern='Unit'",
"lint:html": "html-validate _site/**/*.html",
"test:accessibility": "jest --testNamePattern='Accessibility'",
"test:performance": "lighthouse-ci autorun",
"performance:full": "node scripts/performance-test.js",
"performance:lighthouse": "lighthouse-ci autorun --config=lighthouserc.js",
"performance:analyze": "node -e \"console.log('Bundle analysis:'); require('./scripts/performance-test.js')\"",
"build:performance": "JEKYLL_ENV=production bundle exec jekyll build --config _config.yml",
"serve:performance": "bundle exec jekyll serve --port 4000 --incremental --profile",
"validate": "npm run lint:html && npm run test:accessibility",
"optimize:images": "./scripts/optimize-images.sh"
},
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "^7.23.0",
"@lhci/cli": "^0.12.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.1.5",
"axe-core": "^4.8.3",
"babel-jest": "^29.7.0",
"fast-check": "^3.15.0",
"html-validate": "^8.7.4",
"jest": "^29.7.0",
"jest-axe": "^8.0.0",
"jest-environment-jsdom": "^29.7.0",
"puppeteer": "^21.6.1"
},
"jest": {
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/tests/setup.js"
],
"testMatch": [
"<rootDir>/tests/**/*.test.js"
],
"collectCoverageFrom": [
"assets/js/**/*.js",
"!assets/js/**/*.min.js"
],
"coverageDirectory": "tests/coverage",
"coverageReporters": [
"text",
"lcov",
"html"
],
"transform": {
"^.+\\.js$": "babel-jest"
}
}
}