Move webcomponents.js polyfill to mocks (#8993)

* Move webcomponents.js polyfill to mocks

I'd like to move it out of shared to make it easier to sync this to RN.
Since this is only used for testing and a polyfill is essentially a mock.
Maybe this makes sense?

Rename to camel case to be consistent with providesModule.

* Update path to ignore in configs
This commit is contained in:
Sebastian Markbåge
2017-02-27 18:35:05 -08:00
committed by GitHub
parent f923adb585
commit e35724a03d
4 changed files with 2 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
# We can probably lint these later but not important at this point
src/renderers/art
src/shared/vendor
src/__mocks__/vendor
# But not in docs/_js/examples/*
docs/_js/*.js
docs/js/

View File

@@ -39,7 +39,6 @@ var paths = {
'src/ReactVersion.js',
'src/shared/**/*.js',
'!src/shared/vendor/**/*.js',
'!src/**/__benchmarks__/**/*.js',
'!src/**/__tests__/**/*.js',
'!src/**/__mocks__/**/*.js',
@@ -57,7 +56,6 @@ var paths = {
'src/ReactVersion.js',
'src/shared/**/*.js',
'!src/shared/vendor/**/*.js',
'!src/**/__benchmarks__/**/*.js',
'!src/**/__tests__/**/*.js',
'!src/**/__mocks__/**/*.js',
@@ -71,7 +69,6 @@ var paths = {
'src/ReactVersion.js',
'src/shared/**/*.js',
'!src/shared/vendor/**/*.js',
'!src/**/__benchmarks__/**/*.js',
'!src/**/__tests__/**/*.js',
'!src/**/__mocks__/**/*.js',
@@ -85,7 +82,6 @@ var paths = {
'src/ReactVersion.js',
'src/shared/**/*.js',
'!src/shared/vendor/**/*.js',
'!src/**/__benchmarks__/**/*.js',
'!src/**/__tests__/**/*.js',
'!src/**/__mocks__/**/*.js',
@@ -99,7 +95,6 @@ var paths = {
'src/ReactVersion.js',
'src/shared/**/*.js',
'!src/shared/vendor/**/*.js',
'!src/**/__benchmarks__/**/*.js',
'!src/**/__tests__/**/*.js',
'!src/**/__mocks__/**/*.js',

View File

@@ -122,7 +122,7 @@
],
"collectCoverageFrom": [
"src/**/*.js",
"!src/shared/vendor/third_party/*.js",
"!src/__mocks__/vendor/third_party/*.js",
"!src/test/*.js"
],
"timers": "fake"