Closed relekang closed 7 years ago
Merging #43 into master will increase coverage by
1.81%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## master #43 +/- ##
==========================================
+ Coverage 81.81% 83.63% +1.81%
==========================================
Files 3 3
Lines 55 55
Branches 12 13 +1
==========================================
+ Hits 45 46 +1
+ Misses 10 9 -1
Impacted Files | Coverage Ξ | |
---|---|---|
src/db.js | 70% <0%> (+10%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 3f3ff19...4294132. Read the comment docs.
Have you tried running this with the redis adapter? Does it work??
Yes, this is with the repo linked locally.
~/dev/ma/adapter-redis(test) Β» jest
PASS ./test.js
micro-analytics adapter redis
β should save and read (17ms)
β should return all saves on getAll (3ms)
β should have check whether a key is stored with has (1ms)
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 0.702s, estimated 1s
Ran all test suites.
Awesome, is there anything left to be done?!
No, this pr is done π I will update the branch in redis repo when it is out.
Published as 1.2.0-10
(tagged as dev
) from #31!
Usage (copied from the changes to writing-adapters.md)
The option object takes the following properties.
name
- The name of the adaptermodulePath
- The absolute path to the file you refer to in main in package.jsonbeforeEach
- Will be called in jest beforeEach hook, return a promise if it needs to do something async. We recommend cleaning the database here.afterEach
- Will be called in jest afterEach hook, return a promise if it needs to do something async.beforeAll
- Will be called in jest beforeAll hook, return a promise if it needs to do something async.afterAll
- Will be called in jest afterAll hook, return a promise if it needs to do something async.