Fix local startup defaults and add MVP tests
This commit is contained in:
14
test/compose.integration.test.mjs
Normal file
14
test/compose.integration.test.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
|
||||
test('docker compose config exposes the expected local services and safe defaults', () => {
|
||||
const config = fs.readFileSync('/tmp/mastermind-mvp/docker-compose.yml', 'utf8');
|
||||
|
||||
assert.match(config, /db:/);
|
||||
assert.match(config, /web:/);
|
||||
assert.match(config, /worker:/);
|
||||
assert.match(config, /BOOTSTRAP_OWNER_EMAIL: \$\{BOOTSTRAP_OWNER_EMAIL:-owner@local\}/);
|
||||
assert.match(config, /BOOTSTRAP_OWNER_PASSWORD: \$\{BOOTSTRAP_OWNER_PASSWORD:-owner\}/);
|
||||
assert.match(config, /\.\/README\.md:\/app\/README\.md:ro/);
|
||||
});
|
||||
Reference in New Issue
Block a user