feat: establish backend foundation
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
process.env.DATABASE_URL = 'file:/tmp/wealth-ledger-e2e.db';
|
||||
process.env.FRONTEND_ORIGIN = 'http://localhost:5173';
|
||||
@@ -2,8 +2,12 @@
|
||||
"moduleFileExtensions": ["js", "json", "ts"],
|
||||
"rootDir": ".",
|
||||
"testEnvironment": "node",
|
||||
"setupFiles": ["<rootDir>/e2e-env.cjs"],
|
||||
"testRegex": ".e2e-spec.ts$",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"moduleNameMapper": {
|
||||
"^(\\.{1,2}/.*)\\.js$": "$1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
const assert = require('node:assert/strict');
|
||||
const { existsSync, readFileSync } = require('node:fs');
|
||||
|
||||
const packageJson = JSON.parse(readFileSync('package.json', 'utf8'));
|
||||
|
||||
assert.equal(packageJson.scripts['start:prod'], 'node dist/src/main.js');
|
||||
assert.ok(existsSync('dist/src/main.js'));
|
||||
assert.doesNotThrow(() => require('../dist/generated/prisma/client.js'));
|
||||
Reference in New Issue
Block a user