diff --git a/tests/ImportOrderCaseSensitive/__snapshots__/ppsi.spec.ts.snap b/tests/ImportOrderCaseSensitive/__snapshots__/ppsi.spec.ts.snap new file mode 100644 index 0000000..6d1a94a --- /dev/null +++ b/tests/ImportOrderCaseSensitive/__snapshots__/ppsi.spec.ts.snap @@ -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"; + +`; diff --git a/tests/ImportOrderCaseSensitive/mixed-case.ts b/tests/ImportOrderCaseSensitive/mixed-case.ts new file mode 100644 index 0000000..7b0a094 --- /dev/null +++ b/tests/ImportOrderCaseSensitive/mixed-case.ts @@ -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"; diff --git a/tests/ImportOrderCaseSensitive/ppsi.spec.ts b/tests/ImportOrderCaseSensitive/ppsi.spec.ts new file mode 100644 index 0000000..596a005 --- /dev/null +++ b/tests/ImportOrderCaseSensitive/ppsi.spec.ts @@ -0,0 +1,7 @@ +import {run_spec} from '../../test-setup/run_spec'; + +run_spec(__dirname, ["typescript"], { + importOrder: ['^@core/(.*)$', '^@server/(.*)', '^@ui/(.*)$', '^[./]'], + importOrderCaseSensitive: true, + importOrderParserPlugins: ['typescript'] +});