From e1621cf7dd226d59a97205f4473da08ccd916ad1 Mon Sep 17 00:00:00 2001 From: Will Hunt <will@half-shot.uk> Date: Mon, 2 Nov 2020 22:50:01 +0000 Subject: [PATCH] Use ts-node so we don't rely on builds to test with --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4685147..131c281 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A bridge between Matrix and Discord", "main": "discordas.js", "scripts": { - "test": "npm run-script build && mocha build/test/config.js build/test", + "test": "mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts", "lint": "tslint --project ./tsconfig.json -t stylish", "coverage": "tsc && nyc mocha build/test/config.js build/test", "build": "tsc", -- GitLab