Skip to content

Commit 61919fc

Browse files
committed
Discard snapshot values relying on local environment
1 parent 0675940 commit 61919fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/semver.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ describe('semver - should those tests break, consider releasing a new major vers
2020
});
2121

2222
it('has stable config rules', () => {
23-
expect(getComputedConfig(config)).toMatchSnapshot();
23+
const computed = getComputedConfig(config);
24+
// Replace values that contain machine-specific information.
25+
computed.extends = computed.extends.map((extend) =>
26+
extend.replace(/.*node_modules\//, ''),
27+
);
28+
expect().toMatchSnapshot();
2429
});
2530
});

0 commit comments

Comments
 (0)