You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
343 B

'use strict'
const { resolve } = require('node:path')
const { Piscina } = require('../../dist')
module.exports = suite => {
suite.add('startup/default', { maxTime: 1 }, async () => {
const pool = new Piscina({
filename: resolve(__dirname, '..', 'fixtures/add.js')
})
await pool.run({ a: 1, b: 2 })
})
return suite
}