@napi-rs/cli
Version:
Cli tools for napi-rs
98 lines (89 loc) • 2.31 kB
Markdown
# Snapshot report for `src/utils/__tests__/config.spec.ts`
The actual snapshot is saved in `config.spec.ts.snap`.
Generated by [AVA](https://avajs.dev).
## should be able to read config from package.json
> Snapshot 1
{
binaryName: 'testing',
npmClient: 'npm',
packageJson: {
name: '@napi-rs/testing',
napi: {
binaryName: 'testing',
packageName: '@napi-rs/testing',
targets: [
'x86_64-unknown-linux-gnu',
'x86_64-pc-windows-msvc',
'x86_64-apple-darwin',
],
},
version: '0.0.0',
},
packageName: '@napi-rs/testing',
targets: [
{
abi: 'gnu',
arch: 'x64',
platform: 'linux',
platformArchABI: 'linux-x64-gnu',
triple: 'x86_64-unknown-linux-gnu',
},
{
abi: 'msvc',
arch: 'x64',
platform: 'win32',
platformArchABI: 'win32-x64-msvc',
triple: 'x86_64-pc-windows-msvc',
},
{
abi: null,
arch: 'x64',
platform: 'darwin',
platformArchABI: 'darwin-x64',
triple: 'x86_64-apple-darwin',
},
],
}
## should be able to read config from napi.json
> Snapshot 1
{
binaryName: 'testing',
npmClient: 'npm',
packageJson: {
name: '@napi-rs/testing',
napi: {
binaryName: 'testing',
packageName: '@node-rs/testing',
targets: [
'x86_64-unknown-linux-gnu',
'x86_64-apple-darwin',
'aarch64-apple-darwin',
],
},
version: '0.0.0',
},
packageName: '@node-rs/testing',
targets: [
{
abi: 'gnu',
arch: 'x64',
platform: 'linux',
platformArchABI: 'linux-x64-gnu',
triple: 'x86_64-unknown-linux-gnu',
},
{
abi: null,
arch: 'x64',
platform: 'darwin',
platformArchABI: 'darwin-x64',
triple: 'x86_64-apple-darwin',
},
{
abi: null,
arch: 'arm64',
platform: 'darwin',
platformArchABI: 'darwin-arm64',
triple: 'aarch64-apple-darwin',
},
],
}