1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-26 15:25:21 +02:00

github actions: test directory issue

This commit is contained in:
Thomas Wilkerling
2025-04-17 15:25:30 +02:00
parent a8bc4d56c7
commit 6df662d084
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
global.self = global; global.self = global;
const env = process.argv[3] && process.argv[3].startsWith("--") ? process.argv[4] : process.argv[3]; const env = process.argv[3] && process.argv[3].startsWith("--") ? process.argv[4] : process.argv[3];
import { expect } from "chai"; import { expect } from "chai";
console.log(process.argv);
console.log("--RELEASE-------------"); console.log("--RELEASE-------------");
console.log(env ? "dist/" + env + ".js" : "src/bundle.js") console.log(env ? "dist/" + env + ".js" : "src/bundle.js")
console.log("----------------------"); console.log("----------------------");

View File

@@ -3,7 +3,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "mocha *.js --exit", "test": "mocha *.js --exit",
"test:github": "mocha ./*.js flexsearch.compact.min", "test:github": "mocha async.js flexsearch.compact.min",
"test:coverage": "c8 -c ./.c8rc.json mocha ./*.js --exit", "test:coverage": "c8 -c ./.c8rc.json mocha ./*.js --exit",
"test:keystore": "set NODE_OPTIONS=--max-old-space-size=16000 && c8 -c ./.c8rc.json mocha ./keystore.js --exit", "test:keystore": "set NODE_OPTIONS=--max-old-space-size=16000 && c8 -c ./.c8rc.json mocha ./keystore.js --exit",
"test:db": "c8 -c ./.c8rc.json mocha ./persistent.*.js --exit", "test:db": "c8 -c ./.c8rc.json mocha ./persistent.*.js --exit",