Skip to content

Commit 6949c7a

Browse files
committed
Add (failing) test for esm compat
1 parent 7393084 commit 6949c7a

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// test/my-module.test.js
2+
import assert from 'node:assert'
3+
import { describe, it } from 'node:test'
4+
import { Client } from 'pg'
5+
6+
describe('executeQuery', () => {
7+
it('should return a non-empty result for a valid query', async () => {
8+
assert.ok(true, 'hi')
9+
})
10+
})

packages/pg-esm-test/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "pg-esm-test",
3+
"version": "1.0.0",
4+
"description": "A test module for PostgreSQL with ESM support",
5+
"main": "index.js",
6+
"type": "module",
7+
"scripts": {
8+
"test": "node --test"
9+
},
10+
"keywords": [
11+
"postgres",
12+
"postgresql",
13+
"esm",
14+
"test"
15+
],
16+
"dependencies": {
17+
"pg": "^8.14.1"
18+
},
19+
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
20+
"license": "MIT"
21+
}

0 commit comments

Comments
 (0)