chore: dependências e teste de ponta a ponta
Saem gsap, motion, clsx e tailwind-merge; entram server-only, @playwright/test e @axe-core/playwright. Suíte e2e (rotas, axe, teclado, navegação, sem JS, rolagem) rodável com pnpm test:e2e contra BASE_URL.
This commit is contained in:
1 parent
318a764190
commit
7b633f0f4a
12 files changed
+459
-94
No files matched your search
+3
-2
@@ -5,12 +5,13 @@ const config: Config = {
|
||||
testEnvironment: "jsdom",
|
||||
roots: ["<rootDir>/app", "<rootDir>/lib"],
|
||||
modulePathIgnorePatterns: ["<rootDir>/.worktrees/"],
|
||||
// o teste de fumaça (Playwright) roda com `pnpm test:e2e`, não no Jest
|
||||
testPathIgnorePatterns: ["/node_modules/", "<rootDir>/e2e/"],
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
||||
moduleNameMapper: {
|
||||
"^@/(.*)$": "<rootDir>/$1",
|
||||
"^.+\\.(css|sass|scss)$": "identity-obj-proxy",
|
||||
"^.+/animations/PointCloud$":
|
||||
"<rootDir>/app/components/animations/__mocks__/PointCloud.tsx",
|
||||
"^server-only$": "<rootDir>/lib/__mocks__/server-only.ts",
|
||||
},
|
||||
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
|
||||
transform: {
|
||||
|
||||
Reference in new issue
Block a user