Skip to content

Commit af38643

Browse files
committed
Ahhh okay so need the node: prefix when importing 'test' I guess.
1 parent 2b6f538 commit af38643

9 files changed

Lines changed: 9 additions & 9 deletions

packages/pg-esm-test/common-js-imports.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const assert = require('assert')
2-
const test = require('test')
2+
const test = require('node:test')
33
const { describe, it } = test
44

55
const paths = [

packages/pg-esm-test/pg-cloudflare.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import { CloudflareSocket } from 'pg-cloudflare'
44

55
describe('pg-cloudflare', () => {

packages/pg-esm-test/pg-connection-string.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import { parse, toClientConfig, parseIntoClientConfig } from 'pg-connection-string'
44

55
describe('pg-connection-string', () => {

packages/pg-esm-test/pg-cursor.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import Cursor from 'pg-cursor'
44

55
describe('pg-cursor', () => {

packages/pg-esm-test/pg-native.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import Client from 'pg-native'
44

55
describe('pg-native', () => {

packages/pg-esm-test/pg-pool.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import Pool from 'pg-pool'
44

55
describe('pg-pool', () => {

packages/pg-esm-test/pg-protocol.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import protocol, { NoticeMessage, DatabaseError } from 'pg-protocol/dist/messages.js'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import { strict as assert } from 'assert'
44

55
describe('pg-protocol', () => {

packages/pg-esm-test/pg-query-stream.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import QueryStream from 'pg-query-stream'
44

55
describe('pg-query-stream', () => {

packages/pg-esm-test/pg.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import { describe, it } from 'test'
2+
import { describe, it } from 'node:test'
33
import pg, {
44
Client,
55
Pool,

0 commit comments

Comments
 (0)