We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process.env
Describe the bug Here is the utility function I'm using in my tests:
/* eslint-env browser */ 'use strict' const IPFSClient = require('../../src/index') const activate = () => { const worker = new SharedWorker(process.env.IPFS_WORKER_URL) const client = IPFSClient.from(worker.port) return client } exports.activate = activate
which is referred from my test file. While trying to debug my failing test aegir test -w -t browser -- --browsers Chrome I've discover following:
aegir test -w -t browser -- --browsers Chrome
It actually contains all my env dump inlined in there.
.aegir.js
'use strict' module.exports = { bundlesize: { maxSize: '89kB' }, karma: { files: [ { pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*', watched: false, served: true, included: false }, { pattern: 'dist/worker.bundle.js', watched: false, served: true, included: false } ], browserNoActivityTimeout: 210 * 1000, singleRun: true, captureConsole: true, logLevel: 'LOG_DEBUG', mocha: { bail: true } }, hooks: { browser: { pre: async () => { return { env: { IPFS_WORKER_URL: /dist/worker.bundle.js } } } } } }
module.exports = { bundlesize: { maxSize: '89kB' }, karma: { files: [ { pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*', watched: false, served: true, included: false }, { pattern: 'dist/worker.bundle.js', watched: false, served: true, included: false } ], browserNoActivityTimeout: 210 * 1000, singleRun: true, captureConsole: true, logLevel: 'LOG_DEBUG', mocha: { bail: true } }, hooks: { browser: { pre: async () => { return { env: { IPFS_WORKER_URL: /dist/worker.bundle.js } } } } } }
/dist/worker.bundle.js
The text was updated successfully, but these errors were encountered:
what happens when you console.log(process.env.IPFS_WORKER_URL)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Here is the utility function I'm using in my tests:
which is referred from my test file. While trying to debug my failing test
aegir test -w -t browser -- --browsers Chrome
I've discover following:It actually contains all my env dump inlined in there.
.aegir.js
The text was updated successfully, but these errors were encountered: