mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-30 04:52:04 -04:00
* feat: support installing Deno runtime * refactor: use npm registry to resolve deno version * feat: wip * feat: installing deno runtime * style: fix * test: fix * test: deno * test: fix * feat: deno * feat: deno * feat: create zip fetcher * style: fix * refactor: node fetch * feat: support a new binary fetcher * test: fix * feat: rename zip-fetcher to binary-fetcher * refactor: change naming * fix: windows * refactor: rename packages * refactor: deno resolver * refactor: runtime resolvers * refactor: binary fetcher * refactor: runtime resolvers * refactor: runtime resolvers * refactor: create SingleResolution * refactor: remove not needed change * refactor: package requester * docs: add changesets * refactor: use VariationsResolution and AtomicResolution * refactor: implement CR suggestions * docs: add changesets * fix: address comment in CR * feat: update formatting of pnpm-lock.yaml
18 lines
595 B
TypeScript
18 lines
595 B
TypeScript
import { getNormalizedArch } from '../lib/normalizeArch'
|
|
|
|
test.each([
|
|
['win32', 'ia32', 'x86'],
|
|
['linux', 'arm', 'armv7l'], // Raspberry Pi 4
|
|
['linux', 'x64', 'x64'],
|
|
])('getNormalizedArch(%s, %s)', (platform, arch, normalizedArch) => {
|
|
expect(getNormalizedArch(platform, arch)).toBe(normalizedArch)
|
|
})
|
|
|
|
// macos apple silicon
|
|
test.each([
|
|
['darwin', 'arm64', '14.20.0', 'x64'],
|
|
['darwin', 'arm64', '16.17.0', 'arm64'],
|
|
])('getNormalizedArch(%s, %s)', (platform, arch, nodeVersion, normalizedArch) => {
|
|
expect(getNormalizedArch(platform, arch, nodeVersion)).toBe(normalizedArch)
|
|
})
|