Skip to content

Commit

Permalink
rollback require change
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 13, 2024
1 parent 123ee83 commit 39acbe3
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion test/abort-task.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventEmitter } from 'events';
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/async-context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createHook, executionAsyncId } from 'async_hooks';
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/atomics-optimization.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/console-log.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../..');
import Piscina from '../..';
import { resolve } from 'path';

const pool = new Piscina({
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/move.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../..');
import Piscina from '../..';
import assert from 'assert';
import { types } from 'util';

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/simple-isworkerthread.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../..');
import Piscina from '../..';
import assert from 'assert';

assert.strictEqual(Piscina.isWorkerThread, true);
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/simple-workerdata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../..');
import Piscina from '../..';
import assert from 'assert';

assert.strictEqual(Piscina.workerData, 'ABC');
Expand Down
2 changes: 1 addition & 1 deletion test/histogram.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/idle-timeout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';
import { promisify } from 'util';
Expand Down
2 changes: 1 addition & 1 deletion test/messages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../dist/src');
import Piscina from '../dist/src';
import { test } from 'tap';
import { resolve } from 'path';
import { once } from 'events';
Expand Down
2 changes: 1 addition & 1 deletion test/move-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import {
isMovable,
markMovable,
Expand Down
2 changes: 1 addition & 1 deletion test/nice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { resolve } from 'path';
import { test } from 'tap';

Expand Down
2 changes: 1 addition & 1 deletion test/option-validation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';

test('filename cannot be non-null/non-string', async ({ throws }) => {
Expand Down
2 changes: 1 addition & 1 deletion test/pool-destroy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/post-task.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MessageChannel } from 'worker_threads';
import { cpus } from 'os';
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/simple-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { version } from '../package.json';
import { pathToFileURL } from 'url';
Expand Down
2 changes: 1 addition & 1 deletion test/task-queue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';
import { Task, TaskQueue } from '../dist/src/common';
Expand Down
2 changes: 1 addition & 1 deletion test/test-is-buffer-transferred.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('../dist/src');
import Piscina from '../dist/src';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/test-resourcelimits.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';

Expand Down
2 changes: 1 addition & 1 deletion test/test-uncaught-exception-from-handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { test } from 'tap';
import { resolve } from 'path';
import { once } from 'events';
Expand Down
2 changes: 1 addition & 1 deletion test/thread-count.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Piscina = require('..');
import Piscina from '..';
import { cpus } from 'os';
import { test } from 'tap';
import { resolve } from 'path';
Expand Down

0 comments on commit 39acbe3

Please sign in to comment.