mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add focused regression tests for the environment helper and Stork binary target selection so the Ubuntu 24 and Apple Silicon path stays protected.
29 lines
870 B
JavaScript
29 lines
870 B
JavaScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import {
|
|
getStorkExecutableTarget,
|
|
getStorkExecutableDownloadUrl
|
|
} from '~/helpers/stork/executable.js'
|
|
|
|
describe( 'stork executable selection', () => {
|
|
it( 'uses the Ubuntu 22.04 binary for Linux builds', () => {
|
|
expect( getStorkExecutableTarget({
|
|
platform: 'linux',
|
|
arch: 'x64'
|
|
}) ).toBe( 'stork-ubuntu-22-04' )
|
|
})
|
|
|
|
it( 'uses the Apple Silicon macOS binary on arm64 Macs', () => {
|
|
expect( getStorkExecutableTarget({
|
|
platform: 'darwin',
|
|
arch: 'arm64'
|
|
}) ).toBe( 'stork-macos-13-arm' )
|
|
})
|
|
|
|
it( 'builds the download URL from the selected target', () => {
|
|
expect( getStorkExecutableDownloadUrl({
|
|
platform: 'linux',
|
|
arch: 'x64'
|
|
}) ).toContain( '/stork-ubuntu-22-04' )
|
|
})
|
|
})
|