Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -37,7 +37,8 @@ async function seedFleet(): Promise<void> {
|
||||
describe('config baseline + overlay flow', () => {
|
||||
it('composes baseline + overlay for activation and queues restoration of the pre-beta state', async () => {
|
||||
await seedFleet();
|
||||
const { createScript, getLatestVersion } = await import('../../src/lib/server/fleet/scripts.js');
|
||||
const { createScript, getLatestVersion } =
|
||||
await import('../../src/lib/server/fleet/scripts.js');
|
||||
const { openBeta, rollbackBeta } = await import('../../src/lib/server/fleet/beta.js');
|
||||
|
||||
// 1. Upload baseline for game=t5.
|
||||
@@ -92,7 +93,8 @@ describe('config baseline + overlay flow', () => {
|
||||
|
||||
it('requires an existing baseline before overlays can compose', async () => {
|
||||
await seedFleet();
|
||||
const { createScript, getLatestVersion } = await import('../../src/lib/server/fleet/scripts.js');
|
||||
const { createScript, getLatestVersion } =
|
||||
await import('../../src/lib/server/fleet/scripts.js');
|
||||
const { openBeta } = await import('../../src/lib/server/fleet/beta.js');
|
||||
const { db } = await import('../../src/lib/server/db/index.js');
|
||||
|
||||
@@ -128,8 +130,11 @@ describe('plugin kind writes to plugin destination', () => {
|
||||
it('deploys a plugin .dll directly to its target filename', async () => {
|
||||
await seedFleet();
|
||||
// Pre-create the plugins dir so the write can succeed.
|
||||
await mkdir(join(fixture.t5, 't5_zombie_theater_1', 'runtime/plutonium/plugins'), { recursive: true });
|
||||
const { createScript, getLatestVersion } = await import('../../src/lib/server/fleet/scripts.js');
|
||||
await mkdir(join(fixture.t5, 't5_zombie_theater_1', 'runtime/plutonium/plugins'), {
|
||||
recursive: true
|
||||
});
|
||||
const { createScript, getLatestVersion } =
|
||||
await import('../../src/lib/server/fleet/scripts.js');
|
||||
const { openBeta } = await import('../../src/lib/server/fleet/beta.js');
|
||||
|
||||
const { script } = createScript({
|
||||
@@ -150,7 +155,12 @@ describe('plugin kind writes to plugin destination', () => {
|
||||
waitForMatch: false
|
||||
});
|
||||
|
||||
const pluginPath = join(fixture.t5, 't5_zombie_theater_1', 'runtime/plutonium/plugins', 'demo.dll');
|
||||
const pluginPath = join(
|
||||
fixture.t5,
|
||||
't5_zombie_theater_1',
|
||||
'runtime/plutonium/plugins',
|
||||
'demo.dll'
|
||||
);
|
||||
expect(existsSync(pluginPath)).toBe(false);
|
||||
await activateFiles('beta', betaId);
|
||||
expect(existsSync(pluginPath)).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user