mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-20 22:19:46 -05:00
2333d04a54
- fixes #1264 - fixes #1321 - fixes #1799 - fixes #2689 - fixes #2688 - fixes #2687 - fixes #2686
21 lines
568 B
JavaScript
21 lines
568 B
JavaScript
// TODO: This file was created by bulk-decaffeinate.
|
|
// Sanity-check the conversion and remove this comment.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
//# wrapper around opn due to issues with proxyquire + istanbul
|
|
const os = require('os')
|
|
const opn = require('opn')
|
|
|
|
module.exports = {
|
|
opn (arg, opts = {}) {
|
|
if (os.platform() === 'darwin') {
|
|
opts.args = '-R'
|
|
}
|
|
|
|
return opn(arg, opts)
|
|
},
|
|
}
|