Skip to content

Commit

Permalink
Push up failing test for #87
Browse files Browse the repository at this point in the history
  • Loading branch information
fbartho committed May 16, 2023
1 parent 3c02cfa commit aa8e7e9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/ImportCommentsNoDuplicate/__snapshots__/ppsi.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`import-comments-should-not-duplicate.ts - typescript-verify > import-comments-should-not-duplicate.ts 1`] = `
#!/usr/bin/env ts-node
// ################################################
// ## Highlander comment: There can only be one! ##
// ################################################
const someRandomGlobal = "stuff";
import * as fs from "fs";
import * as path from "path";
import shell from "shelljs";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/usr/bin/env ts-node
// ################################################
// ## Highlander comment: There can only be one! ##
// ################################################
import * as fs from "fs";
import * as path from "path";
import shell from "shelljs";
// ################################################
// ## Highlander comment: There can only be one! ##
// ################################################
const someRandomGlobal = "stuff";
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env ts-node
// ################################################
// ## Highlander comment: There can only be one! ##
// ################################################

const someRandomGlobal = "stuff";

import * as fs from "fs";
import * as path from "path";
import shell from "shelljs";

5 changes: 5 additions & 0 deletions tests/ImportCommentsNoDuplicate/ppsi.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {run_spec} from '../../test-setup/run_spec';

run_spec(__dirname, ["typescript"], {
importOrderParserPlugins : ['typescript']
});

0 comments on commit aa8e7e9

Please sign in to comment.