mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 02:11:28 +00:00
test(docker): add regression test for bundled asset availability
Verify all four integrated Docker assets (compose file, Dockerfile, supervisord config, entrypoint script) resolve and exist on disk. Prevents silent exclusion from future packaging changes.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { existsSync } from 'fs';
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
import { getDockerAssetPaths } from '../../../src/docker/docker-assets';
|
||||
|
||||
describe('docker bundled assets', () => {
|
||||
const assets = getDockerAssetPaths();
|
||||
|
||||
it('resolves all required asset paths', () => {
|
||||
expect(assets.composeFile).toContain('docker-compose.integrated.yml');
|
||||
expect(assets.dockerfile).toContain('Dockerfile.integrated');
|
||||
expect(assets.supervisordConfig).toContain('supervisord.conf');
|
||||
expect(assets.entrypoint).toContain('entrypoint-integrated.sh');
|
||||
});
|
||||
|
||||
it('all bundled assets exist on disk', () => {
|
||||
expect(existsSync(assets.composeFile)).toBe(true);
|
||||
expect(existsSync(assets.dockerfile)).toBe(true);
|
||||
expect(existsSync(assets.supervisordConfig)).toBe(true);
|
||||
expect(existsSync(assets.entrypoint)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user