Lines Matching defs:const
0 const t = require('tap')
2 const mockNpm = require('../../fixtures/mock-npm.js')
3 const { sep } = require('path')
5 const fixture = {
154 const workspaceFixture = {
183 const loadMockNpm = async (t, prefixDir, config = {}) => {
185 const opened = {}
187 const mock = await mockNpm(t, {
206 const { repo, opened } = await loadMockNpm(t, fixture)
207 const expect = {
233 for (const [pkg, url] of Object.entries(expect)) {
240 const { repo } = await loadMockNpm(t, fixture)
242 const cases = [
249 for (const pkg of cases) {
258 const { repo, opened } = await loadMockNpm(t, fixture)
264 const mockWorkspaces = (t, config) => loadMockNpm(t, workspaceFixture, config)
267 const { opened, repo } = await mockWorkspaces(t, {
280 const { opened, repo } = await mockWorkspaces(t, {
291 const { opened, repo } = await mockWorkspaces(t, {
301 const { opened, repo } = await mockWorkspaces(t, {
312 const { opened, repo } = await mockWorkspaces(t, {