Skip to content

Commit 59a503e

Browse files
committed
update tests
1 parent 9259b84 commit 59a503e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/__tests__/dist.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ describe.concurrent("Test plugin with default options in example build with tsup
2323
const text = fs.readFileSync(path.resolve(exampleBuildDir, "client", "index.js"), "utf-8");
2424
expect(/data-testid/.test(text)).toBe(false);
2525
});
26+
27+
test('should not contain .snap files', ({expect}) => {
28+
expect(fs.existsSync(path.resolve(exampleBuildDir, "client", "header", '__snapshots__'))).toBe(false);
29+
})
2630
});

0 commit comments

Comments
 (0)