Skip to content

Commit e764138

Browse files
committed
Flatten test file structure so each OS gets it...
1 parent 148a81f commit e764138

11 files changed

+25
-25
lines changed

packages/knip/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"knip:production": "node ./dist/cli.js --directory ../.. --production --strict",
4141
"lint": "biome lint ../..",
4242
"format": "biome format --write .",
43-
"test": "bun test test/** !fixtures/**",
43+
"test": "bun test test/*.test.ts test/**/*.test.ts",
4444
"test:watch": "bun test test/*.test.ts test/**/*.test.ts --reporter=junit --reporter-outfile=junit.xml || bun test --watch $(grep -o 'name=\"[^\"]*\".*failures=\"[^0]' junit.xml | grep -v 'name=\"bun test\"' | grep -o 'name=\"[^\"]*\"' | cut -d'\"' -f2)",
4545
"test:node": "glob -c \"npx -y tsx --test --import ./transform-test.js\" \"test/**/*.test.ts\"",
4646
"test:smoke": "bun test test/*.test.ts test/{helpers,plugins,util}/*.test.ts",

packages/knip/test/cli/reporter/cli-reporter-codeclimate.test.ts renamed to packages/knip/test/cli/cli-reporter-codeclimate.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
33
import type { Issue } from 'codeclimate-types';
4-
import { resolve } from '../../../src/util/path.js';
5-
import { assertAndRemoveFingerprint, orderByPos } from '../../helpers/assertAndRemoveProperty.js';
6-
import { exec } from '../../helpers/exec.js';
4+
import { resolve } from '../../src/util/path.js';
5+
import { assertAndRemoveFingerprint, orderByPos } from '../helpers/assertAndRemoveProperty.js';
6+
import { exec } from '../helpers/exec.js';
77

88
const cwd = resolve('fixtures/exports');
99

packages/knip/test/cli/reporter/cli-reporter-codeclimate2.test.ts renamed to packages/knip/test/cli/cli-reporter-codeclimate2.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
33
import type { Issue } from 'codeclimate-types';
4-
import { resolve } from '../../../src/util/path.js';
5-
import { assertAndRemoveFingerprint, orderByPos } from '../../helpers/assertAndRemoveProperty.js';
6-
import { exec } from '../../helpers/exec.js';
4+
import { resolve } from '../../src/util/path.js';
5+
import { assertAndRemoveFingerprint, orderByPos } from '../helpers/assertAndRemoveProperty.js';
6+
import { exec } from '../helpers/exec.js';
77

88
const cwd = resolve('fixtures/module-resolution-non-std');
99

packages/knip/test/cli/reporter/cli-reporter-codeclimate3.test.ts renamed to packages/knip/test/cli/cli-reporter-codeclimate3.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
33
import type { Issue } from 'codeclimate-types';
4-
import { resolve } from '../../../src/util/path.js';
5-
import { assertAndRemoveFingerprint, orderByPos } from '../../helpers/assertAndRemoveProperty.js';
6-
import { exec } from '../../helpers/exec.js';
4+
import { resolve } from '../../src/util/path.js';
5+
import { assertAndRemoveFingerprint, orderByPos } from '../helpers/assertAndRemoveProperty.js';
6+
import { exec } from '../helpers/exec.js';
77

88
const cwd = resolve('fixtures/enum-members');
99

packages/knip/test/cli/reporter/cli-reporter-codeclimate4.test.ts renamed to packages/knip/test/cli/cli-reporter-codeclimate4.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
33
import type { Issue } from 'codeclimate-types';
4-
import { resolve } from '../../../src/util/path.js';
5-
import { assertAndRemoveFingerprint, orderByPos } from '../../helpers/assertAndRemoveProperty.js';
6-
import { exec } from '../../helpers/exec.js';
4+
import { resolve } from '../../src/util/path.js';
5+
import { assertAndRemoveFingerprint, orderByPos } from '../helpers/assertAndRemoveProperty.js';
6+
import { exec } from '../helpers/exec.js';
77

88
const cwd = resolve('fixtures/dependencies');
99

packages/knip/test/cli/reporter/cli-reporter-json.test.ts renamed to packages/knip/test/cli/cli-reporter-json.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
3-
import { resolve } from '../../../src/util/path.js';
4-
import { exec } from '../../helpers/exec.js';
3+
import { resolve } from '../../src/util/path.js';
4+
import { exec } from '../helpers/exec.js';
55

66
const cwd = resolve('fixtures/exports');
77

packages/knip/test/cli/reporter/cli-reporter-json2.test.ts renamed to packages/knip/test/cli/cli-reporter-json2.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
3-
import { resolve } from '../../../src/util/path.js';
4-
import { exec } from '../../helpers/exec.js';
3+
import { resolve } from '../../src/util/path.js';
4+
import { exec } from '../helpers/exec.js';
55

66
const cwd = resolve('fixtures/module-resolution-non-std');
77

packages/knip/test/cli/reporter/cli-reporter-json3.test.ts renamed to packages/knip/test/cli/cli-reporter-json3.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
3-
import { resolve } from '../../../src/util/path.js';
4-
import { exec } from '../../helpers/exec.js';
3+
import { resolve } from '../../src/util/path.js';
4+
import { exec } from '../helpers/exec.js';
55

66
const cwd = resolve('fixtures/enum-members');
77

packages/knip/test/cli/reporter/cli-reporter-json4.test.ts renamed to packages/knip/test/cli/cli-reporter-json4.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
3-
import { resolve } from '../../../src/util/path.js';
4-
import { exec } from '../../helpers/exec.js';
3+
import { resolve } from '../../src/util/path.js';
4+
import { exec } from '../helpers/exec.js';
55

66
const cwd = resolve('fixtures/dependencies');
77

packages/knip/test/cli/reporter/cli-reporter-markdown.test.ts renamed to packages/knip/test/cli/cli-reporter-markdown.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test } from 'bun:test';
22
import assert from 'node:assert/strict';
3-
import { resolve } from '../../../src/util/path.js';
4-
import { exec } from '../../helpers/exec.js';
3+
import { resolve } from '../../src/util/path.js';
4+
import { exec } from '../helpers/exec.js';
55

66
const cwd = resolve('fixtures/module-resolution-non-std');
77

0 commit comments

Comments
 (0)