Skip to content

Commit 35431fe

Browse files
committed
build: strip color from snapshots
1 parent 341ca6f commit 35431fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/utils/snapshots.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
// eslint-disable-next-line no-restricted-imports
2+
import ansis from 'ansis'
3+
14
const baseNormalizers = [
5+
// Strip ansis color control characters
6+
// TODO(serhalp) Why not exercise colorization in integration tests? Remove and update snapshots?
7+
{ pattern: /^.+$/g, value: ansis.strip },
28
// Information about the package and the OS
39
{ pattern: /netlify-cli\/.+node-.+/g, value: 'netlify-cli/test-version test-os test-node-version' },
410
{ pattern: /@netlify\/build (\d+\.\d+\.\d+)/g, value: '@netlify/build 0.0.0' },

0 commit comments

Comments
 (0)