Skip to content

Commit f9a5347

Browse files
committed
test for missing config
1 parent 5d70fb7 commit f9a5347

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/config/src/index.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ const withPackages = (pkgNames: string[]) => ({
3030
})),
3131
});
3232

33+
test("missing config throws", async () => {
34+
let cwd = await testdir({
35+
".changeset/README.md": "",
36+
});
37+
expect(async () => await read(cwd, defaultPackages)).toThrowError();
38+
});
39+
3340
test("read reads the config", async () => {
3441
let cwd = await testdir({
3542
".changeset/config.json": JSON.stringify({

0 commit comments

Comments
 (0)