sourcegraph/client/browser/scripts/test-integration.js
Quinn Slack dc478c82dd
chore(ci): remove Percy visual tests (#63515)
These are more frequently erroneous than helpful.

See
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1719209633005499.

This eliminates a source of frustration and flakiness in pull requests
and removes a lot of code and Bazel complexity.

If we want to revive them, we can revert this commit. Note that
`client/web-sveltekit` does not use Percy, and if we want it to, we can
always revert this commit or start over from scratch if that's easier.


<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

CI

Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2024-06-27 16:20:06 +02:00

13 lines
331 B
JavaScript

const shelljs = require('shelljs')
const { decompressRecordings, deleteRecordings } = require('./utils')
// eslint-disable-next-line no-void
void (async () => {
await decompressRecordings()
shelljs.exec('POLLYJS_MODE=replay pnpm run-integration', async code => {
await deleteRecordings()
process.exit(code)
})
})()