Skip to content

Commit 5434de3

Browse files
committed
mv type coercion in migration test.
1 parent 791bca5 commit 5434de3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

migration/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ const tester = new RuleTester({
1111
languageOptions: { parser },
1212
});
1313

14-
const ruleName =
15-
`v${manifest.version.split(".")[0]}` as keyof typeof migration.rules;
14+
const ruleName = `v${manifest.version.split(".")[0]}`;
15+
const theRule = migration.rules[ruleName as keyof typeof migration.rules];
1616

1717
describe("Migration", () => {
1818
test("should consist of one rule being the major version of the package", () => {
1919
expect(migration.rules).toHaveProperty(ruleName);
2020
expect(migration).toMatchSnapshot();
2121
});
2222

23-
tester.run(ruleName, migration.rules[ruleName], {
23+
tester.run(ruleName, theRule, {
2424
valid: [
2525
`import {} from "zod";`,
2626
`ez.dateIn({ examples: ["1963-04-21"] });`,

0 commit comments

Comments
 (0)