Skip to content

Commit

Permalink
Add end-to-end test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 27, 2024
1 parent 22af6f8 commit d7cc4cf
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/ImportOrderCaseSensitive/__snapshots__/ppsi.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`mixed-case.ts - typescript-verify > mixed-case.ts 1`] = `
import c from "c";
import b from "b";
import a from "a";
import {cat, Dog} from "C";
import B from "B";
import A from "A";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import a from "a";
import A from "A";
import b from "b";
import B from "B";
import c from "c";
import { cat, Dog } from "C";
`;
8 changes: 8 additions & 0 deletions tests/ImportOrderCaseSensitive/mixed-case.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

import c from "c";
import b from "b";
import a from "a";

import {cat, Dog} from "C";
import B from "B";
import A from "A";
7 changes: 7 additions & 0 deletions tests/ImportOrderCaseSensitive/ppsi.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {run_spec} from '../../test-setup/run_spec';

run_spec(__dirname, ["typescript"], {
importOrder: ['^@core/(.*)$', '^@server/(.*)', '^@ui/(.*)$', '^[./]'],
importOrderCaseSensitive: true,
importOrderParserPlugins: ['typescript']
});

0 comments on commit d7cc4cf

Please sign in to comment.