Skip to content

Commit

Permalink
Support snapshotResolver option (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
iainjreid authored Apr 29, 2022
1 parent 9b0a402 commit 25376da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/worker-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ export default async function run({

const { tests, hasFocusedTests } = await loadTests(test.path);

const snapshotResolver = await snapshot.buildSnapshotResolver(
test.context.config
);
const snapshotState = new snapshot.SnapshotState(
`${path.dirname(test.path)}/__snapshots__/${path.basename(test.path)}.snap`,
snapshotResolver.resolveSnapshotPath(test.path),
{
prettierPath: "prettier",
updateSnapshot,
Expand Down

0 comments on commit 25376da

Please sign in to comment.