Skip to content

Commit

Permalink
Test package can be required
Browse files Browse the repository at this point in the history
  • Loading branch information
ratson committed May 23, 2018
1 parent 32ad800 commit e237c95
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
},
"devDependencies": {
"ava": "^1.0.0-beta.4",
"bluebird": "^3.5.1",
"create-elm-app": "^1.10.4",
"eslint": "^4.19.1",
"eslint-config-concise": "^0.24.0",
"eslint-config-concise": "^0.25.0",
"eslint-config-concise-ava": "^0.23.0",
"eslint-config-concise-browser": "^0.24.0",
"eslint-config-concise-esnext": "^0.24.1",
"fast-glob": "^2.2.2",
"husky": "^0.14.3",
"lerna": "^3.0.0-beta.18",
"lint-staged": "^7.0.5",
"npm-run-all": "^4.1.2",
"preslint": "^0.23.1"
"lint-staged": "^7.1.2",
"npm-run-all": "^4.1.3",
"preslint": "^0.25.0"
},
"ava": {
"sources": [
Expand Down
2 changes: 1 addition & 1 deletion packages/runa-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "index.js",
"license": "MIT",
"dependencies": {
"esm": "^3.0.33",
"esm": "^3.0.36",
"execa": "^0.10.0",
"nanoid": "^1.0.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/runa-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"license": "MIT",
"dependencies": {
"debug": "^3.1.0",
"esm": "^3.0.33",
"restify": "^7.1.1"
"esm": "^3.0.36",
"restify": "^7.2.0"
},
"devDependencies": {
"runa-core": "^0.0.0",
"sinon": "^5.0.7",
"supertest": "^3.0.0"
"supertest": "^3.1.0"
},
"eslintConfig": {
"extends": [
Expand Down
14 changes: 14 additions & 0 deletions test/require.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import test from 'ava'
import glob from 'fast-glob'
import Bluebird from 'bluebird'
import execa from 'execa'

test('can require packages', async t => {
await Bluebird.map(
glob('packages/runa-core', { onlyDirectories: true }),
async cwd => {
await execa('node', ['-e', "require('.')"], { cwd })
},
)
t.pass()
})

0 comments on commit e237c95

Please sign in to comment.