File tree Expand file tree Collapse file tree 3 files changed +9
-113
lines changed Expand file tree Collapse file tree 3 files changed +9
-113
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " src/index.js" ,
6
6
"types" : " src/index.d.ts" ,
7
7
"scripts" : {
8
- "test" : " yarn build && xo && c8 ava --serial" ,
9
- "test:ci" : " yarn build && xo && ava --serial" ,
8
+ "test" : " xo && c8 ava --serial" ,
9
+ "test:ci" : " xo && ava --serial" ,
10
+ "test:next" : " yarn build && xo && TEST_NEXT=true ava --serial" ,
10
11
"build" : " tsc" ,
11
12
"prepublishOnly" : " yarn build" ,
12
13
"clean" : " rm -rf node_modules && rm -rf ./coverage && rm -rf ./dist"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /* eslint-disable n/prefer-global/process */
1
2
const test = require ( 'ava' ) ;
2
3
const keyvTestSuite = require ( '@keyv/test-suite' ) . default ;
3
4
const { keyvOfficialTests, keyvIteratorTests} = require ( '@keyv/test-suite' ) ;
4
5
const Keyv = require ( 'keyv' ) ;
5
6
const Redis = require ( 'ioredis' ) ;
6
- const KeyvRedis = require ( '../src/index.js' ) ;
7
+ let KeyvRedis = require ( '../src/index.js' ) ;
8
+
9
+ if ( process . env . TEST_NEXT === 'true' ) {
10
+ KeyvRedis = require ( '../dist/index.js' ) ;
11
+ }
7
12
8
13
const REDIS_HOST = 'localhost' ;
9
14
const redisURI = `redis://${ REDIS_HOST } ` ;
You can’t perform that action at this time.
0 commit comments