mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 08:23:13 +09:00
Use an absolute NODE_EXTRA_CA_CERTS path in test
Remove some complexity around correctly handling a relative path to extra CA certs by setting it to an absolute path.
This commit is contained in:
1 parent
fb3fe09466
commit
8a51e9cf4d
2 files changed
+2
-7
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"watch": "tsc --build --watch",
|
"watch": "tsc --build --watch",
|
||||||
"build-mod": "pnpm run -r build-mod --output-dir ../../dist",
|
"build-mod": "pnpm run -r build-mod --output-dir ../../dist",
|
||||||
"test": "pnpm run build && NODE_EXTRA_CA_CERTS=test/file/tls/cert.pem mocha --enable-source-maps --check-leaks -R spec --recursive test \"plugins/*/test/**\" --exclude \"test/manual/**\"",
|
"test": "pnpm run build && NODE_EXTRA_CA_CERTS=$(pwd)/test/file/tls/cert.pem mocha --enable-source-maps --check-leaks -R spec --recursive test \"plugins/*/test/**\" --exclude \"test/manual/**\"",
|
||||||
"silent-test": "SILENT_TEST=y pnpm test",
|
"silent-test": "SILENT_TEST=y pnpm test",
|
||||||
"fast-test": "FAST_TEST=y pnpm test",
|
"fast-test": "FAST_TEST=y pnpm test",
|
||||||
"cover": "nyc pnpm test",
|
"cover": "nyc pnpm test",
|
||||||
|
|||||||
@@ -197,12 +197,7 @@ let controlConfigPath = path.join("temp", "test", "config-control.json");
|
|||||||
function childOptions(options) {
|
function childOptions(options) {
|
||||||
return {
|
return {
|
||||||
cwd: path.join("temp", "test"),
|
cwd: path.join("temp", "test"),
|
||||||
env: {
|
env: { ...process.env },
|
||||||
...process.env,
|
|
||||||
NODE_EXTRA_CA_CERTS: process.env.NODE_EXTRA_CA_CERTS
|
|
||||||
? path.resolve(process.env.NODE_EXTRA_CA_CERTS)
|
|
||||||
: undefined,
|
|
||||||
},
|
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user