chore: run eslint on tools/run-id-tests
This commit is contained in:
parent
68a3ad40d1
commit
c502790295
|
@ -1,18 +1,18 @@
|
||||||
import { spawnSync } from 'node:child_process';
|
import { spawnSync } from 'node:child_process'
|
||||||
import process from 'node:process';
|
import process from 'node:process'
|
||||||
|
|
||||||
// Import directly from file so that this script works without dependencies installed.
|
// Import directly from file so that this script works without dependencies installed.
|
||||||
import { games } from './../lib/games.js';
|
import { games } from './../lib/games.js'
|
||||||
|
|
||||||
const ID_TEST_BIN = process.env["GAMEDIG_ID_TESTER"] || "gamedig-id-tests";
|
const ID_TEST_BIN = process.env.GAMEDIG_ID_TESTER || 'gamedig-id-tests'
|
||||||
|
|
||||||
const result = spawnSync(ID_TEST_BIN, {
|
const result = spawnSync(ID_TEST_BIN, {
|
||||||
input: JSON.stringify(games),
|
input: JSON.stringify(games),
|
||||||
stdio: ['pipe', 'inherit', 'inherit'],
|
stdio: ['pipe', 'inherit', 'inherit']
|
||||||
});
|
})
|
||||||
|
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
throw result.error;
|
throw result.error
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exit(result.status);
|
process.exit(result.status)
|
||||||
|
|
Loading…
Reference in New Issue