Skip to content

Commit

Permalink
add mocha exclude directive
Browse files Browse the repository at this point in the history
  • Loading branch information
pubalokta committed Aug 1, 2024
1 parent 017b23a commit 18384d9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"url": "http://github.com/auth0/limitd-redis.git"
},
"scripts": {
"test-standalone": "CLUSTERED_ENV=false NODE_ENV=test nyc mocha --exit",
"test-cluster": "CLUSTERED_ENV=true NODE_ENV=test nyc mocha --exit"
"test-standalone": "NODE_ENV=test nyc mocha --exit --exclude '**/*clustermode*'",
"test-cluster": "NODE_ENV=test nyc mocha --exit --exclude '**/*standalonemode*'"
},
"author": "Auth0",
"license": "MIT",
Expand Down
4 changes: 0 additions & 4 deletions test/client.clustermode.tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if (process.env.CLUSTERED_ENV === "false") {
return;
}

/* eslint-env node, mocha */
const _ = require('lodash');
const assert = require('chai').assert;
Expand Down
4 changes: 0 additions & 4 deletions test/client.standalonemode.tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if (process.env.CLUSTERED_ENV === "true") {
return;
}

/* eslint-env node, mocha */
const _ = require('lodash');
const assert = require('chai').assert;
Expand Down
4 changes: 0 additions & 4 deletions test/db.clustermode.tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if (process.env.CLUSTERED_ENV === 'false') {
return;
}

const LimitDB = require('../lib/db');
const _ = require('lodash');
const { tests: dbTests } = require('./db.tests');
Expand Down
4 changes: 0 additions & 4 deletions test/db.standalonemode.tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if (process.env.CLUSTERED_ENV === 'true') {
return;
}

const LimitDB = require('../lib/db');
const _ = require('lodash');
const { tests: dbTests, buckets} = require('./db.tests');
Expand Down

0 comments on commit 18384d9

Please sign in to comment.