Files
speckle-server/packages/server/bin/mocha
T
huanld 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
feat: customize speckle-server for ATAD - auth bypass, file upload, frontend cleanup
2026-04-21 16:32:12 +07:00

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)