Skip to content

Commit

Permalink
Merge pull request #707 from konnectors/fix/test
Browse files Browse the repository at this point in the history
fix: Tests issues
  • Loading branch information
Crash-- authored Dec 8, 2022
2 parents ced535c + ccb1219 commit 81dc4b3
Show file tree
Hide file tree
Showing 4 changed files with 1,161 additions and 11 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"p-limit": "2.3.0"
},
"devDependencies": {
"babel-jest": "26",
"babel-preset-cozy-app": "^2.0.4",
"chalk": "4.1.2",
"clear": "0.1.0",
"configstore": "6.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/synchronizeContacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ const synchronizeContacts = async (

// remove from cozy contacts the contacts that have been updated by previous loop
const countBefore = cozyContacts.length
// eslint-disable-next-line no-param-reassign
cozyContacts = cozyContacts.filter(
cozyContact =>
!googleContacts.some(
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const webpack = require('webpack')
const fs = require('fs')
const SvgoInstance = require('svgo')

const index = require('./package.json').main


const readManifest = () =>
JSON.parse(fs.readFileSync(path.join(__dirname, './manifest.konnector')))
Expand All @@ -29,7 +29,7 @@ const appIconRX = iconName && new RegExp(`[^/]*/${iconName}`)

module.exports = {
entry: {
index,
index: './src/index.js',
onDeleteAccount: './src/onDeleteAccount.js'
},
target: 'node',
Expand Down
Loading

0 comments on commit 81dc4b3

Please sign in to comment.