Use Signal tokenizer in FTS5

This commit is contained in:
Fedor Indutny 2023-01-26 15:53:22 -08:00 committed by GitHub
parent 28a295d4e1
commit 2637df0c42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 15 deletions

View file

@ -13,15 +13,23 @@ const ELECTRON = join(
process.platform === 'win32' ? 'electron.cmd' : 'electron'
);
const stdout = execFileSync(ELECTRON, [ROOT_DIR], {
cwd: ROOT_DIR,
env: {
...process.env,
NODE_ENV: 'test',
TEST_QUIT_ON_COMPLETE: 'on',
},
encoding: 'utf8',
});
let stdout: string;
try {
stdout = execFileSync(ELECTRON, [ROOT_DIR], {
cwd: ROOT_DIR,
env: {
...process.env,
NODE_ENV: 'test',
TEST_QUIT_ON_COMPLETE: 'on',
},
encoding: 'utf8',
});
} catch (error) {
console.error('Status', error.status);
console.error(error.output[0] ?? '');
console.error(error.output[1] ?? '');
process.exit(1);
}
const match = stdout.match(/ci:test-electron:done=(.*)?\n/);