Skip to content

Commit

Permalink
fix: resolve path to @octokit/fixtures more robustly
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Feb 12, 2018
1 parent 4b5d883 commit 4a5a173
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/defaults.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const {resolve} = require('path')
const resolvePackage = require('resolve-pkg')
const DEFAULT_FIXTURES_GLOB = resolve(resolvePackage('@octokit/fixtures'), 'scenarios/**/normalized-fixture.json')
const {dirname, resolve} = require('path')
const globTofixtures = require('./glob-to-fixtures')

const octokitFixturesPath = dirname(require.resolve('@octokit/fixtures'))
const DEFAULT_FIXTURES_GLOB = resolve(octokitFixturesPath, 'scenarios/**/normalized-fixture.json')

module.exports = {
port: 3000,
fixturesUrl: null,
Expand Down

0 comments on commit 4a5a173

Please sign in to comment.