Skip to content

Commit

Permalink
Merge pull request #14 from arcanis/dev-peer-fixtures
Browse files Browse the repository at this point in the history
Improves the fixtures
  • Loading branch information
arcanis authored Mar 2, 2018
2 parents 2c32963 + cf00d52 commit 009fc45
Show file tree
Hide file tree
Showing 31 changed files with 215 additions and 63 deletions.
8 changes: 5 additions & 3 deletions packages/pkg-tests/pkg-tests-fixtures/default-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = require(`./package.json`);

for (const key of Object.keys(module.exports.dependencies || {})) {
module.exports.dependencies[key] = require(key);
for (const key of [`dependencies`, `devDependencies`, `peerDependencies`]) {
for (const dep of Object.keys(module.exports[key] || {})) {
// $FlowFixMe The whole point of this file is to be dynamic
module.exports[key][dep] = require(dep);
}
}
Loading

0 comments on commit 009fc45

Please sign in to comment.