Skip to content

Commit

Permalink
refactor: npm-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Dec 31, 2022
1 parent ba6ff62 commit badf66a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resolving/npm-resolver/test/publishedBy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ const fetch = createFetchFromRegistry({})
const getAuthHeader = () => undefined
const createResolveFromNpm = createNpmResolver.bind(null, fetch, getAuthHeader)

afterEach(() => {
nock.cleanAll()
nock.disableNetConnect()
})

beforeEach(() => {
nock.enableNetConnect()
})

test('fall back to a newer version if there is no version published by the given date', async () => {
nock(registry)
.get('/bad-dates')
Expand Down

0 comments on commit badf66a

Please sign in to comment.