mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +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",
|
||||
"watch": "tsc --build --watch",
|
||||
"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",
|
||||
"fast-test": "FAST_TEST=y pnpm test",
|
||||
"cover": "nyc pnpm test",
|
||||
|
||||
@@ -197,12 +197,7 @@ let controlConfigPath = path.join("temp", "test", "config-control.json");
|
||||
function childOptions(options) {
|
||||
return {
|
||||
cwd: path.join("temp", "test"),
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_EXTRA_CA_CERTS: process.env.NODE_EXTRA_CA_CERTS
|
||||
? path.resolve(process.env.NODE_EXTRA_CA_CERTS)
|
||||
: undefined,
|
||||
},
|
||||
env: { ...process.env },
|
||||
...options,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user