mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
test: Add main test from template
Doesn't work yet though
This commit is contained in:
parent
95a4337530
commit
46187cd528
1 changed files with 17 additions and 0 deletions
17
test/main.ts
Normal file
17
test/main.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import test from 'ava' // eslint-disable-line import/no-unresolved
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
import * as process from 'process'
|
||||
|
||||
// eslint-disable-next-line ava/no-skip-test
|
||||
test.skip('test runs', t => {
|
||||
process.env['INPUT_VERSION'] = 'v22.10.2'
|
||||
const np = process.execPath
|
||||
const ip = path.join(__dirname, '..', 'lib', 'src', 'main.js')
|
||||
const options: cp.ExecFileSyncOptions = {
|
||||
env: process.env
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(cp.execFileSync(np, [ip], options).toString())
|
||||
t.pass()
|
||||
})
|
Loading…
Reference in a new issue