mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Add (failing) test for esm compat
This commit is contained in:
parent
739308463d
commit
6949c7ad73
10
packages/pg-esm-test/index.test.js
Normal file
10
packages/pg-esm-test/index.test.js
Normal 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')
|
||||
})
|
||||
})
|
||||
21
packages/pg-esm-test/package.json
Normal file
21
packages/pg-esm-test/package.json
Normal 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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user