Skip to content

Commit

Permalink
report cra
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodny committed Nov 13, 2023
1 parent 3c2ab67 commit ee7a431
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ try {
fs.mkdirSync('build');
} catch (e) {}

fs.cpSync('jest-report.html', 'build/jest-report.html');
fs.cpSync('report.html', 'build/report.html');

const examples = fs.readdirSync('examples');
const dirs = [];
Expand Down
2 changes: 1 addition & 1 deletion examples/cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"safetest": "react-scripts --inspect test --runInBand --url=http://localhost:3000/cra --testMatch '**/*.safetest.{j,t}s{,x}' --setupFilesAfterEnv ./setup-safetest.js",
"safetest:ci": "npm run safetest -- --watchAll=false --json --outputFile=results.json --bail=5 --ci=1 --docker=1 --url=https://safetest-two.vercel.app/cra --artifacts-json=artifacts.json && npx safetest merge-json results.json artifacts.json",
"safetest:regenerate-screenshots": "npm run safetest -- --watchAll=false --docker=1 --update-snapshot",
"process:ci": "npx safetest merge-json results.json artifacts.json",
"process:ci": "npx safetest merge-json results.json artifacts.json && cp results.json ../../build/cra/results.json",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
7 changes: 7 additions & 0 deletions jest-report.html → report.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<!DOCTYPE html>

<!-- jest-report.html#results=https://safetest-two.vercel.app/cra/artifacts/results.json&artifacts=https://safetest-two.vercel.app/cra/artifacts/artifacts-info.json -->

<!-- python3 -m http.server 9000 - -->
<!-- http://localhost:9000/jest-report.html#results=%2Fexamples%2Fcra%2Fresults.json&base=https://safetest-two.vercel.app/cra/ -->
<!-- http://localhost:9000/jest-report.html#results=%2Fexamples%2Fvite-react-ts%2Fresults.json&base=https://safetest-two.vercel.app/vite-react-ts/ -->

<html lang="en">
<title>htm Demo</title>
<meta charset="UTF-8" />
Expand Down

0 comments on commit ee7a431

Please sign in to comment.