- Add vitest with solid plugin, coverage, jsdom environment - Create MSW mocks for API responses in test setup - Add unit test for ProfessionAdminListPage - Add Playwright accessibility and visual regression configs - Add sample accessibility and visual tests - Add ESLint + Prettier configs with SolidJS rules - Update scripts: test, test:coverage, test:accessibility, test:visual - Add .gitignore entries for coverage, test-results, playwright-report, .vitest - Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc. - Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks This sets up full testing pipeline for admin frontend.
69 lines
2.9 KiB
JSON
69 lines
2.9 KiB
JSON
{
|
|
"name": "nxtgauge-admin-solid",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vinxi dev",
|
|
"build": "vinxi build",
|
|
"start": "vinxi start",
|
|
"start:3000": "HOST=0.0.0.0 PORT=3000 node .output/server/index.mjs",
|
|
"admin:restart:3000": "bash ./scripts/admin-3000-service.sh restart",
|
|
"admin:stop:3000": "bash ./scripts/admin-3000-service.sh stop",
|
|
"admin:status:3000": "bash ./scripts/admin-3000-service.sh status",
|
|
"admin:start:3000": "bash ./scripts/admin-3000-service.sh start",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:headed": "playwright test --headed",
|
|
"test:visual": "playwright test tests/e2e/admin-visual.spec.ts --reporter=list --workers=1",
|
|
"test:management:parity": "playwright test tests/e2e/management-parity.spec.ts --reporter=list --workers=1",
|
|
"test:storybook:e2e": "playwright test -c playwright.storybook.config.ts tests/e2e/storybook-admin-pages.spec.ts --reporter=list --workers=1",
|
|
"test:external:flow": "playwright test -c playwright.external.config.ts tests/e2e/external-user-flow.spec.ts --reporter=list --workers=1",
|
|
"test:external:roles": "playwright test -c playwright.external.config.ts tests/e2e/external-roles-onboarding-dashboard.spec.ts --reporter=list --workers=1",
|
|
"test:external:screenshots": "playwright test -c playwright.external.config.ts tests/e2e/external-role-screenshots.spec.ts --reporter=list --workers=1",
|
|
"test:accessibility": "playwright test --config=playwright.a11y.config.ts",
|
|
"test:visual:regression": "playwright test --config=playwright.visual.config.ts",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build",
|
|
"qa:visbug": "bash ./scripts/visbug-storybook.sh",
|
|
"qa:e2e:blueprint": "bash ./scripts/run-nxtgauge-e2e-suite.sh"
|
|
},
|
|
"dependencies": {
|
|
"@solidjs/meta": "^0.29.4",
|
|
"@solidjs/router": "^0.15.0",
|
|
"@solidjs/start": "^1.3.2",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@thisbeyond/solid-dnd": "^0.7.5",
|
|
"apexcharts": "^5.10.4",
|
|
"lucide-solid": "^1.0.1",
|
|
"solid-js": "^1.9.5",
|
|
"tailwindcss": "^4.2.2",
|
|
"vinxi": "^0.5.7"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^1.7.0",
|
|
"@chromatic-com/storybook": "^5.1.0",
|
|
"@playwright/test": "^1.58.2",
|
|
"@solidjs/testing-library": "^0.8.0",
|
|
"@storybook/addon-a11y": "^10.3.3",
|
|
"@storybook/addon-docs": "^10.3.3",
|
|
"@storybook/addon-vitest": "^10.3.3",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@vitest/browser-playwright": "^4.1.1",
|
|
"@vitest/coverage-v8": "^4.1.1",
|
|
"jsdom": "^25.0.1",
|
|
"msw": "^2.7.3",
|
|
"pixelmatch": "^7.1.0",
|
|
"playwright": "^1.58.2",
|
|
"pngjs": "^7.0.0",
|
|
"storybook": "^10.3.3",
|
|
"storybook-solidjs-vite": "^10.0.11",
|
|
"visbug": "^0.1.14",
|
|
"vitest": "^4.1.1",
|
|
"vitest-plugin-solid": "^0.2.0",
|
|
"typescript": "^5.5.0"
|
|
}
|
|
}
|