mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Test each app concurently
This commit is contained in:
parent
2a525d93d5
commit
33dbd93dec
1 changed files with 28 additions and 16 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
import {
|
import {
|
||||||
assert,
|
describe,
|
||||||
expect,
|
it,
|
||||||
test
|
expect
|
||||||
} from 'vitest'
|
} from 'vitest'
|
||||||
|
|
||||||
|
import path from 'node:path'
|
||||||
// https://github.com/mrmlnc/fast-glob
|
// https://github.com/mrmlnc/fast-glob
|
||||||
import glob from 'fast-glob'
|
import glob from 'fast-glob'
|
||||||
import { LocalFileData } from 'get-file-object-from-local-path'
|
import { LocalFileData } from 'get-file-object-from-local-path'
|
||||||
|
|
@ -47,7 +48,13 @@ async function makeZipFromBundlePath ( bundlePath ) {
|
||||||
return archiveFile
|
return archiveFile
|
||||||
}
|
}
|
||||||
|
|
||||||
test('Can read info.plist for .app file', async () => {
|
|
||||||
|
describe.concurrent('Apps', () => {
|
||||||
|
|
||||||
|
// Compress plain app bundles to zipped File Objects
|
||||||
|
for ( const bundlePath of plainAppBundles ) {
|
||||||
|
|
||||||
|
it( `Can read info.plist for ${ path.basename( bundlePath ) } bundle` , async () => {
|
||||||
|
|
||||||
// Compress plain app bundles to zipped File Objects
|
// Compress plain app bundles to zipped File Objects
|
||||||
for ( const bundlePath of plainAppBundles ) {
|
for ( const bundlePath of plainAppBundles ) {
|
||||||
|
|
@ -68,4 +75,9 @@ test('Can read info.plist for .app file', async () => {
|
||||||
expect( scan.hasInfoPlist ).toBe( true )
|
expect( scan.hasInfoPlist ).toBe( true )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue