Skip to content

Commit

Permalink
Move cli tests involving stdout to separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jun 8, 2024
1 parent eb3d529 commit 13ba313
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';

const cwd = resolve('fixtures/cli');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import os from 'node:os';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';

const skipIf = typeof Bun !== 'undefined' && os.platform() === 'win32' ? test.skip : test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { helpText } from '../src/util/cli-arguments.js';
import { loadJSON } from '../src/util/fs.js';
import { resolve } from '../src/util/path.js';
import { version } from '../src/version.js';
import { execFactory } from './helpers/exec.js';
import { helpText } from '../../src/util/cli-arguments.js';
import { loadJSON } from '../../src/util/fs.js';
import { resolve } from '../../src/util/path.js';
import { version } from '../../src/version.js';
import { execFactory } from '../helpers/exec.js';

const cwd = resolve('fixtures/cli');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/js-async');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/js-flat');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/json');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/mjs-async');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/mjs-flat');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/package-json');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/ts-async');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/ts-flat');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/ts-function');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../../src/util/path.js';
import { execFactory } from '../helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/config/yaml');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { updatePos } from './helpers/index.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';
import { updatePos } from '../../helpers/index.js';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { updatePos } from './helpers/index.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';
import { updatePos } from '../../helpers/index.js';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { updatePos } from './helpers/index.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';
import { updatePos } from '../../helpers/index.js';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from 'bun:test';
import assert from 'node:assert/strict';
import { resolve } from '../src/util/path.js';
import { execFactory } from './helpers/exec.js';
import { resolve } from '../../../src/util/path.js';
import { execFactory } from '../../helpers/exec.js';

const cwd = resolve('fixtures/cli-reporter');

Expand Down

0 comments on commit 13ba313

Please sign in to comment.