Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Assign defaults for applicationDelegate, document, window to AtomEnvironment - #9195

Closed
bolinfest wants to merge 1 commit into
masterfrom
bf-test-runner-fixes
Closed

bolinfest wants to merge 1 commit into
masterfrom
bf-test-runner-fixes

Conversation

@bolinfest

Copy link
Copy Markdown
Contributor

I tested this using the new custom testrunner feature introduced in
#8968. My testrunner function was defined as follows:

'use babel';

module.exports = function({testPaths, buildAtomEnvironment, logFile, headless, legacyTestRunner}) {
  global.atom = buildAtomEnvironment();
};

Without this change, buildAtomEnvironment() threw a bunch of exceptions.

…omEnvironment.

I tested this using the new custom testrunner feature introduced in
#8968. My testrunner function was defined as follows:

```js
'use babel';

module.exports = function({testPaths, buildAtomEnvironment, logFile, headless, legacyTestRunner}) {
  global.atom = buildAtomEnvironment();
};
```

Without this change, `buildAtomEnvironment()` threw a bunch of exceptions.
@bolinfest bolinfest mentioned this pull request Oct 17, 2015
36 of 38 tasks
@nathansobo

Copy link
Copy Markdown
Contributor

Why not just pass these parameters in? We provide you with a buildDefaultApplicationDelegate method, and you can easily pass in a window and a document. I'd really prefer these things to be explicit.

@damieng damieng closed this Dec 9, 2016
@jasonrudolph
jasonrudolph deleted the bf-test-runner-fixes branch October 28, 2017 00:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants