forked from phobal/ivideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit replaces mocha with jest. Also this commit removes dependency on babel-plugin-webpack-loaders plugin because of the following reasons: 1. It seems that the author deprecated and abandoned this plugin and he suggests not to use it and to use mocks and native test utilities tools instead. 2. This plugin conflicts with webpack 2 and because of the reason one it is unlikely that it will ever support it. In order to remove dependency on the aforementioned plugin and keep using css modules in the same time the following trick is used: All components that need to be selected in the end-to-end test receive data-tid (TestID) and data-tclass (TestCLASS) properties. It is necessary because without running webpack we cannot use class names to select components because we do not know what class names css loader actually generates for us.
- Loading branch information
1 parent
6a0c7f3
commit a76aef2
Showing
29 changed files
with
2,825 additions
and
1,070 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
"extends": "airbnb", | ||
"env": { | ||
"browser": true, | ||
"mocha": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
|
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
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,32 @@ | ||
// flow-typed signature: 01c85564efc84f822c42f28a77800358 | ||
// flow-typed version: <<STUB>>/babel-jest_v^19.0.0/flow_v0.38.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'babel-jest' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'babel-jest' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'babel-jest/build/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'babel-jest/build/index.js' { | ||
declare module.exports: $Exports<'babel-jest/build/index'>; | ||
} |
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
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
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,60 @@ | ||
// flow-typed signature: 77e20fe3383a16a3bda0269a500f4086 | ||
// flow-typed version: <<STUB>>/eslint-plugin-jest_v^19.0.0/flow_v0.38.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'eslint-plugin-jest' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'eslint-plugin-jest' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'eslint-plugin-jest/build/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'eslint-plugin-jest/build/rules/no-disabled-tests' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'eslint-plugin-jest/build/rules/no-focused-tests' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'eslint-plugin-jest/build/rules/no-identical-title' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'eslint-plugin-jest/build/rules/types' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'eslint-plugin-jest/build/index.js' { | ||
declare module.exports: $Exports<'eslint-plugin-jest/build/index'>; | ||
} | ||
declare module 'eslint-plugin-jest/build/rules/no-disabled-tests.js' { | ||
declare module.exports: $Exports<'eslint-plugin-jest/build/rules/no-disabled-tests'>; | ||
} | ||
declare module 'eslint-plugin-jest/build/rules/no-focused-tests.js' { | ||
declare module.exports: $Exports<'eslint-plugin-jest/build/rules/no-focused-tests'>; | ||
} | ||
declare module 'eslint-plugin-jest/build/rules/no-identical-title.js' { | ||
declare module.exports: $Exports<'eslint-plugin-jest/build/rules/no-identical-title'>; | ||
} | ||
declare module 'eslint-plugin-jest/build/rules/types.js' { | ||
declare module.exports: $Exports<'eslint-plugin-jest/build/rules/types'>; | ||
} |
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
Oops, something went wrong.