Skip to content

Commit

Permalink
chore: add src/index.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Nov 29, 2024
1 parent e44282e commit 7ab053e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { describe, expect, it } from "vitest";

import * as index from "./index.js";

describe("index", () => {
it("matches the expected shape", () => {
expect({
...index,
rules: Object.keys(index.rules),
}).toMatchInlineSnapshot(`
{
"configs": {
"recommended": {
"plugins": [
"expect-type",
],
"rules": {
"expect-type/expect": "error",
},
},
},
"rules": [
"expect",
],
}
`);
});
});

0 comments on commit 7ab053e

Please sign in to comment.