Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix check test env
  • Loading branch information
hyoban committed May 6, 2025
commit a0ae2a9275c2e2a922d0b5f2f827d20c9c9b2cdb
3 changes: 1 addition & 2 deletions lib/util/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const CAN_NOT_RESOLVE_TAILWIND_CONFIG_PATH_ERROR =
'Cannot resolve default tailwindcss config path. Please manually set the config option.';

function notice() {
if (process.env.NODE_ENV !== 'test') {
console.warn(CAN_NOT_RESOLVE_TAILWIND_CONFIG_PATH_ERROR);
if (process.env.NODE_ENV === 'test') {
return {};
} else {
throw new Error(CAN_NOT_RESOLVE_TAILWIND_CONFIG_PATH_ERROR);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"main": "lib/index.js",
"scripts": {
"test": "npm run test:base && npm run test:integration",
"test:base": "mocha \"tests/lib/**/*.js\"",
"test:integration": "mocha \"tests/integrations/*.js\" --timeout 60000"
"test:base": "NODE_ENV=test mocha \"tests/lib/**/*.js\"",
"test:integration": "NODE_ENV=test mocha \"tests/integrations/*.js\" --timeout 60000"
},
"files": [
"lib"
Expand Down