mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
chore: add jest tests, cleanup rpc
This commit is contained in:
parent
5977c35d38
commit
ac830fc946
25 changed files with 2786 additions and 319 deletions
13
jest-reporter.js
Normal file
13
jest-reporter.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
class BazelReporter {
|
||||
onRunComplete(_, results) {
|
||||
if (results.numFailedTests && results.snapshot.failure) {
|
||||
console.log(`================================================================================
|
||||
|
||||
Snapshot failed, you can update the snapshot by running
|
||||
bazel run ${process.env['TEST_TARGET'].replace(/_bin$/, '')}.update
|
||||
`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BazelReporter;
|
Loading…
Add table
Add a link
Reference in a new issue