Skip to content

Commit

Permalink
feat: add synpress and homepage test to builder and explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Feb 5, 2024
1 parent 678dbdd commit ed5814f
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/builder/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = {
require.resolve("jest-transform-stub"),
},
setupFilesAfterEnv: ["./src/setupTests.ts"],
testPathIgnorePatterns: ["/e2e/"],
}),
},
webpack: {
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/builder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"jsx": "react-jsx",
"sourceMap": true
},
"include": ["src", "craco.config.js", "fixtures.ts", "tests", "playwright.config.js", ".eslintrc.js"]
"include": ["src", "craco.config.js", "fixtures.ts",
"e2e", "playwright.config.js", ".eslintrc.js"]
}
3 changes: 2 additions & 1 deletion packages/grant-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch",
"start": "craco start",
"test": "vitest run",
"test": "vitest run ",
"test:watch": "vitest watch",
"test:coverage": "vitest --coverage"
},
Expand Down Expand Up @@ -77,6 +77,7 @@
"https-browserify": "^1.0.0",
"ipfs-core": "^0.14.3",
"ipfs-core-types": "^0.14.0",
"jest": "^27.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"moment": "^2.29.3",
Expand Down
9 changes: 9 additions & 0 deletions packages/grant-explorer/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
test: {
Expand Down Expand Up @@ -29,5 +30,13 @@ export default defineConfig({
["**/*", "node"],
],
setupFiles: ["dotenv-flow/config", "src/setupTests.ts"],
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/e2e/**",
],
},
});
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/round-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"start": "craco start",
"build": "env REACT_APP_GIT_SHA=$(git rev-parse --short HEAD) craco build",
"test": "craco test --watchAll=false --silent",
"test": "craco test --watchAll=false --silent --testPathIgnorePatterns=e2e",
"synpress:test": "playwright test --project=chromium",
"test:dev": "craco test --watchAll=true",
"test:coverage": "craco test --watchAll=false --silent --coverage",
Expand Down
3 changes: 2 additions & 1 deletion packages/round-manager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"jsx": "react-jsx",
"types": ["@testing-library/jest-dom", "jest", "node"]
},
"include": ["src", "tests", "fixtures.ts"]
"include": ["src",
"e2e", "fixtures.ts"]
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed5814f

Please sign in to comment.