From 31c329944dfafef6849b6e87cf2d319b70e28796 Mon Sep 17 00:00:00 2001 From: "Brady J. Garvin" <bgarvin@cse.unl.edu> Date: Thu, 19 Oct 2023 13:25:04 -0500 Subject: [PATCH] Added NPM scripts for running specific tests. --- package.json | 2 ++ syntactic-monoids/package.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 6555193..eb9bcc7 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "postinstall": "run-s postinstall:**", "lint:app": "cd syntactic-monoids && npm run lint", "lint": "run-s --continue-on-error lint:**", + "test-once:comments": "cd syntactic-monoids && npm run test-once:comments", + "test-once:texMath": "cd syntactic-monoids && npm run test-once:texMath", "test-once": "cd syntactic-monoids && npm run test-once", "test": "run-s test-once" }, diff --git a/syntactic-monoids/package.json b/syntactic-monoids/package.json index 5842004..33d7b9e 100644 --- a/syntactic-monoids/package.json +++ b/syntactic-monoids/package.json @@ -8,6 +8,8 @@ "scripts": { "lint:js": "eslint --max-warnings 0 ./src", "lint": "run-s --continue-on-error lint:**", + "test-once:comments": "node --experimental-vm-modules node_modules/jest/bin/jest.js -t \"the JavaScript comments monoid\"", + "test-once:texMath": "node --experimental-vm-modules node_modules/jest/bin/jest.js -t \"the TeX math monoid\"", "test-once": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll --coverage" }, -- GitLab