push
github
291 of 292 branches covered (99.66%)
Branch coverage included in aggregate %.
1668 of 1668 new or added lines in 39 files covered. (100.0%)
5089 of 5384 relevant lines covered (94.52%)
3.07 hits per line
|
import { Client } from 'redis-om'; |
1✔ |
|
import { config } from 'dotenv' |
1✔ |
|
|
1✔ |
|
config(); |
1✔ |
|
|
1✔ |
|
const client = async () => { |
1✔ |
|
try {
|
× |
|
let client = await new Client()
|
× |
|
return await client.open(process.env.REDIS_URL)
|
× |
|
} catch (error) {
|
× |
|
console.log(error.message); |
× |
|
} |
× |
|
|
× |
|
}; |
× |
|
|
1✔ |
|
|
1✔ |
|
export default client; |
1✔ |