Add (failing) test for esm compat

This commit is contained in:
Brian Carlson 2025-04-21 13:09:50 -05:00
parent 739308463d
commit 6949c7ad73
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// test/my-module.test.js
import assert from 'node:assert'
import { describe, it } from 'node:test'
import { Client } from 'pg'
describe('executeQuery', () => {
it('should return a non-empty result for a valid query', async () => {
assert.ok(true, 'hi')
})
})

View File

@ -0,0 +1,21 @@
{
"name": "pg-esm-test",
"version": "1.0.0",
"description": "A test module for PostgreSQL with ESM support",
"main": "index.js",
"type": "module",
"scripts": {
"test": "node --test"
},
"keywords": [
"postgres",
"postgresql",
"esm",
"test"
],
"dependencies": {
"pg": "^8.14.1"
},
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
"license": "MIT"
}