File tree Expand file tree Collapse file tree 6 files changed +34
-23
lines changed Expand file tree Collapse file tree 6 files changed +34
-23
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
sudo : false
3
- node_js : [6, 8, 10]
4
- after_success : " yarn coveralls"
3
+ node_js : [8, 10]
4
+ addons :
5
+ chrome : stable
5
6
script :
6
7
- lerna bootstrap --ignore={demos}
7
- - yarn test
8
+ - yarn test:unit
8
9
- lerna run test
10
+ - yarn test:integration:build
11
+ - yarn test:integration
12
+ after_success : " yarn coveralls"
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
12
12
- Removed unnecessary files from the packages
13
13
14
+ ### Removed
15
+
16
+ - Removed test running from Node 6
17
+
14
18
## [ 3.0.0-alpha.2]
15
19
16
20
### Removed
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import ReactDOM from "react-dom" ;
3
+ // Using the following to support async/await in tests.
4
+ // I'm intentionally not using babel/polyfill, as that would introduce polyfills
5
+ // the actual lib might not have, giving the false impression that something
6
+ // works while it might actually not, if you use the lib without babel-polyfill.
7
+ import "babel-regenerator-runtime" ;
3
8
4
9
const Test = ( ) => < div id = "asd" style = { { background : "grey" } } /> ;
5
10
6
- // todo figure out how to make async-await work in parcel
7
- // todo make sure parcel transpiles down to IE10 (example: async and "Set" doesn't work properly)
8
- it ( "should render" , ( ) => {
11
+ it ( "should render" , async ( ) => {
9
12
const div = document . createElement ( "div" ) ;
10
13
document . body . appendChild ( div ) ;
11
14
Original file line number Diff line number Diff line change 1
1
module . exports = function ( config ) {
2
+ const singleRun = process . env . KARMA_SINGLE_RUN !== "false" ;
3
+
4
+ const ci = process . env . CI === "true" ;
5
+
2
6
config . set ( {
3
7
basePath : "." ,
4
8
frameworks : [ "jasmine" ] ,
5
9
files : [ "browser-tests/dist/index.js" ] ,
6
10
autoWatch : true ,
7
11
8
- // todo come up with a way to switch in between dev / CI setup
9
- // browsers: ["Chrome"],
10
- // reporters: ["spec"],
12
+ browsers : ci ? [ "ChromeHeadless" , "sl_chrome_70" ] : [ "Chrome" ] ,
13
+ reporters : ci ? [ "spec" , "saucelabs" ] : [ "spec" ] ,
11
14
12
- reporters : [ "spec" , "saucelabs" ] ,
13
- browsers : [ "sl_chrome_70" ] ,
14
-
15
- singleRun : true ,
15
+ singleRun,
16
16
17
17
// Max concurrency for SauceLabs OS plan
18
18
concurrency : 5 ,
@@ -32,12 +32,6 @@ module.exports = function(config) {
32
32
version : "70"
33
33
}
34
34
} ,
35
-
36
- // Saucelabs launcher
37
- // sauceLabs: {
38
- // testName: 'react-container-query',
39
- // public: 'public'
40
- // },
41
35
sauceLabs : {
42
36
testName : "@zeecoder/container-query" ,
43
37
public : "public"
Original file line number Diff line number Diff line change 14
14
"@babel/core" : " ^7.2.0" ,
15
15
"babel-core" : " ^7.0.0-bridge.0" ,
16
16
"babel-jest" : " ^23.6.0" ,
17
+ "babel-regenerator-runtime" : " ^6.5.0" ,
17
18
"coveralls" : " ^3.0.2" ,
18
19
"husky" : " ^1.1.4" ,
19
20
"jasmine-core" : " ^3.3.0" ,
33
34
"regenerator-runtime" : " ^0.13.1"
34
35
},
35
36
"scripts" : {
36
- "test" : " jest --coverage" ,
37
- "test:watch" : " jest --watch" ,
38
- "browser- test:build " : " parcel build browser-tests/index.js --out-dir browser-tests/dist " ,
39
- "browser- test:run " : " karma start " ,
37
+ "test:unit " : " jest --coverage" ,
38
+ "test:unit: watch" : " jest --watch" ,
39
+ "test:integration " : " karma start " ,
40
+ "test:integration:build " : " parcel build browser-tests/index.js --out-dir browser-tests/dist " ,
40
41
"coveralls" : " cat ./coverage/lcov.info | coveralls" ,
41
42
"prettify" : " prettier --write 'packages/**/*.js'" ,
42
43
"bootstrap" : " lerna bootstrap" ,
Original file line number Diff line number Diff line change @@ -1685,6 +1685,11 @@ babel-preset-jest@^23.2.0:
1685
1685
babel-plugin-jest-hoist "^23.2.0"
1686
1686
babel-plugin-syntax-object-rest-spread "^6.13.0"
1687
1687
1688
+ babel-regenerator-runtime@^6.5.0 :
1689
+ version "6.5.0"
1690
+ resolved "https://registry.yarnpkg.com/babel-regenerator-runtime/-/babel-regenerator-runtime-6.5.0.tgz#0e41cd1c9f80442466f015c749fff8ba98f8e110"
1691
+ integrity sha1-DkHNHJ+ARCRm8BXHSf/4upj44RA=
1692
+
1688
1693
babel-register@^6.26.0 :
1689
1694
version "6.26.0"
1690
1695
resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"
You can’t perform that action at this time.
0 commit comments