From 082646838d8506519d4af60fa7e4362afe33cad3 Mon Sep 17 00:00:00 2001 From: Aliaksei Chapyzhenka Date: Sat, 28 Nov 2020 18:54:29 -0800 Subject: [PATCH] spilit napi and wasm test --- .github/workflows/{nodejs.yml => linux.yml} | 0 package.json | 4 +++- test/{any.js => napi_any.js} | 0 test/{basic.js => napi_basic.js} | 0 test/{dump.js => napi_dump.js} | 0 test/{events.js => napi_events.js} | 0 6 files changed, 3 insertions(+), 1 deletion(-) rename .github/workflows/{nodejs.yml => linux.yml} (100%) rename test/{any.js => napi_any.js} (100%) rename test/{basic.js => napi_basic.js} (100%) rename test/{dump.js => napi_dump.js} (100%) rename test/{events.js => napi_events.js} (100%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/linux.yml similarity index 100% rename from .github/workflows/nodejs.yml rename to .github/workflows/linux.yml diff --git a/package.json b/package.json index 225df40..2079f4a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Value Change Dump (VCD) parser", "main": "lib/index.js", "scripts": { - "test": "eslint bin lib test && nyc -r=text -r=lcov mocha", + "test_napi": "nyc -r=text -r=lcov mocha test/napi_*", + "test_wasm": "nyc -r=text -r=lcov mocha test/wasm_*", + "test": "eslint bin lib test && npm run test_napi && npm run test_wasm", "testonly": "nyc -r=text -r=lcov mocha", "watch": "mocha --watch", "install": "node bin/build.js", diff --git a/test/any.js b/test/napi_any.js similarity index 100% rename from test/any.js rename to test/napi_any.js diff --git a/test/basic.js b/test/napi_basic.js similarity index 100% rename from test/basic.js rename to test/napi_basic.js diff --git a/test/dump.js b/test/napi_dump.js similarity index 100% rename from test/dump.js rename to test/napi_dump.js diff --git a/test/events.js b/test/napi_events.js similarity index 100% rename from test/events.js rename to test/napi_events.js