Files
Nicklas GummessonandSimen Bekkhus f64deaa347 Add resolver for custom snapshots paths (#6143)
* Add resolver for snapshot paths

* Remove snapshotResolver from versioned doc

* Simplify resolveSnapshotPath

* Make error feedback more actionable

* Assert test result before snapshot file

Should help troubleshoot failing tests on CI

* Run integration test with correct flags

Same as the base snapshot.test.js

* Add tests for malformed resolver module

* Resolve paths in tests like implementation

To avoid cross-platform mismatches

* Rename integration-tests => e2e

* Fix code review feedback

* Add changelog entry

* Fix review comments for e2e/__tests__/snapshot_resolver.test.js

* Fix prettier error

* Move changelog entry to correct place

* Move up type import above normal imports

* Add consistency check

* Update snapshot_resolver.js
2018-09-26 08:47:28 +02:00

7 lines
113 B
JSON

{
"jest": {
"testEnvironment": "node",
"snapshotResolver": "<rootDir>/customSnapshotResolver.js"
}
}