-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to Babel stage 1 when testing React component/library and web…
… module projects Fixes #364
- Loading branch information
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @flow | ||
import merge from 'webpack-merge' | ||
|
||
import karmaServer from '../karmaServer' | ||
import reactConfig from '../react' | ||
|
||
import type {ErrBack} from '../types' | ||
|
||
export default function testReactComponent(args: Object, cb: ErrBack) { | ||
karmaServer(args, merge(reactConfig(args).getKarmaTestConfig(), { | ||
babel: { | ||
stage: 1 | ||
} | ||
}), cb) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @flow | ||
import karmaServer from '../karmaServer' | ||
|
||
import type {ErrBack} from '../types' | ||
|
||
export default function testWebModule(args: Object, cb: ErrBack) { | ||
karmaServer(args, { | ||
babel: { | ||
stage: 1 | ||
} | ||
}, cb) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters