From 13f893e0b559f7dec5a497a04a857189d4bcc4e5 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Sep 2021 17:54:15 -0400 Subject: [PATCH] Rename test to testmod so it doesn't initially match instead of using testPathIgnorePatterns which then drops any additional positional args to yarn test --- package.json | 4 ++-- products/jbrowse-img/DEVELOPER.md | 14 +++++--------- .../src/{index.test.js => index.testmod.js} | 0 .../{parseArgv.test.js => parseArgv.testmod.js} | 0 4 files changed, 7 insertions(+), 11 deletions(-) rename products/jbrowse-img/src/{index.test.js => index.testmod.js} (100%) rename products/jbrowse-img/src/{parseArgv.test.js => parseArgv.testmod.js} (100%) diff --git a/package.json b/package.json index aa1ca61790..426764c180 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,9 @@ "check-format": "prettier --check .", "typecheck": "tsc --noEmit", "pretest-ci": "cd products/jbrowse-react-linear-genome-view;yarn build;cd ../../", - "test-ci": "jest --ci --coverage", + "test-ci": "jest --ci --coverage && jest --testMatch '**/*testmod.js'", "built-test-ci": "jest --ci integration.test.js", - "test": "DEBUG_PRINT_LIMIT=0 jest --testPathIgnorePatterns products/jbrowse-img" + "test": "DEBUG_PRINT_LIMIT=0 jest" }, "husky": { "hooks": { diff --git a/products/jbrowse-img/DEVELOPER.md b/products/jbrowse-img/DEVELOPER.md index 715d585f98..8d369100a4 100644 --- a/products/jbrowse-img/DEVELOPER.md +++ b/products/jbrowse-img/DEVELOPER.md @@ -5,15 +5,11 @@ To setup jb2export in a developer environment, you can use ```bash ## setup jb2 git clone https://github.com/GMOD/jbrowse-components +cd jbrowse-components yarn -cd .. - -## setup jb2export -git clone git@github.com:GMOD/jb2export -cd jb2export -./setup_node_modules all /path/to/jb2/installation -yarn build +cd products/jbrowse-react-linear-genome-view +cd ../jbrowse-img +yarn snap ``` -The setup_node_modules performs builds of the plugins and copies them over -(`yarn link` doesn't work well so they are manually built and copied) +Uses jbrowse-react-linear-genome-view for build diff --git a/products/jbrowse-img/src/index.test.js b/products/jbrowse-img/src/index.testmod.js similarity index 100% rename from products/jbrowse-img/src/index.test.js rename to products/jbrowse-img/src/index.testmod.js diff --git a/products/jbrowse-img/src/parseArgv.test.js b/products/jbrowse-img/src/parseArgv.testmod.js similarity index 100% rename from products/jbrowse-img/src/parseArgv.test.js rename to products/jbrowse-img/src/parseArgv.testmod.js