c99f40bb20
Release pipeline / Get version (push) Has been cancelled
Release pipeline / Get Chart Name (push) Has been cancelled
Release pipeline / tests (push) Has been cancelled
Release pipeline / builds (push) Has been cancelled
Release pipeline / builds-ghcr (push) Has been cancelled
Release pipeline / test-deployments (push) Has been cancelled
Release pipeline / deploy (push) Has been cancelled
Release pipeline / Helm chart oci (push) Has been cancelled
Release pipeline / npm (push) Has been cancelled
Release pipeline / snyk (push) Has been cancelled
16 lines
523 B
JavaScript
Executable File
16 lines
523 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
import path from 'path'
|
|
import url from 'node:url'
|
|
|
|
/**
|
|
* Find mocha and run it (we don't want to hardcode a specific node_modules path).
|
|
* We use this so that we can pass in specific flags to node before mocha even begins to run
|
|
*/
|
|
const relativeBinPath = './bin/mocha.js'
|
|
|
|
const mochaPath = url.fileURLToPath(import.meta.resolve('mocha'))
|
|
const mochaPathDir = path.dirname(mochaPath)
|
|
const mochaBinPath = path.join(mochaPathDir, relativeBinPath)
|
|
await import(url.pathToFileURL(mochaBinPath).href)
|
|
|