Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Aug 20, 2024
1 parent ffea1de commit cd9864f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
14 changes: 7 additions & 7 deletions packages/synapse-bridge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#### v3.0.0

- Fix AlertWrapper background [`#3692`](https://github.com/assurance-maladie-digital/design-system/pull/3692)
- Fix DatePicker's issues with validation [`#3688`](https://github.com/assurance-maladie-digital/design-system/pull/3688)
- NirField: add labels props [`#3689`](https://github.com/assurance-maladie-digital/design-system/pull/3689)
- improve validDate rule ans set it by default to DatePicker [`#3681`](https://github.com/assurance-maladie-digital/design-system/pull/3681)
- DatePicker: block submit based on rules [`#3677`](https://github.com/assurance-maladie-digital/design-system/pull/3677)
- Fix buttons style [`#3667`](https://github.com/assurance-maladie-digital/design-system/pull/3667)
- DatePicker refactor delete [`#3670`](https://github.com/assurance-maladie-digital/design-system/pull/3670)
- Fix AlertWrapper background [`#3692`](https://github.com/assurance-maladie-digital/design-system/pull/3692)
- Fix DatePicker's issues with validation [`#3688`](https://github.com/assurance-maladie-digital/design-system/pull/3688)
- NirField: add labels props [`#3689`](https://github.com/assurance-maladie-digital/design-system/pull/3689)
- improve validDate rule ans set it by default to DatePicker [`#3681`](https://github.com/assurance-maladie-digital/design-system/pull/3681)
- DatePicker: block submit based on rules [`#3677`](https://github.com/assurance-maladie-digital/design-system/pull/3677)
- Fix buttons style [`#3667`](https://github.com/assurance-maladie-digital/design-system/pull/3667)
- DatePicker refactor delete [`#3670`](https://github.com/assurance-maladie-digital/design-system/pull/3670)

#### v1.4.10-alpha.0

Expand Down
33 changes: 16 additions & 17 deletions packages/synapse-bridge/tests/unit/setup.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import vueSnapshotSerializer from 'jest-serializer-vue';
import {afterEach, beforeEach, expect, vitest} from 'vitest';
import {createVuetify} from 'vuetify';
import * as components from 'vuetify/components';
import * as directives from 'vuetify/directives';
import Vuex from 'vuex';
import {actions, mutations, state} from '@/modules/notification';
import vueSnapshotSerializer from 'jest-serializer-vue'
import { afterEach, beforeEach, expect, vitest } from 'vitest'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import Vuex from 'vuex'
import { actions, mutations, state } from '@/modules/notification'

// Configuration de Vuetify
export const vuetify = createVuetify({
components,
directives,
});
})

// Fonction pour créer un store Vuex personnalisé
export function createNotificationStore() {
Expand All @@ -23,22 +23,21 @@ export function createNotificationStore() {
mutations,
},
},
});
})
}

// Ajout du sérialiseur de snapshots pour Vue
expect.addSnapshotSerializer(vueSnapshotSerializer);
expect.addSnapshotSerializer(vueSnapshotSerializer)

// Polyfill pour ResizeObserver
global.ResizeObserver = require('resize-observer-polyfill');

global.ResizeObserver = require('resize-observer-polyfill')

// Ajout des hooks globaux pour isoler les tests et eviter les faux positifs
beforeEach(() => {
document.body.innerHTML = ''; // RĂ©initialisation du DOM
});
document.body.innerHTML = '' // RĂ©initialisation du DOM
})

afterEach(() => {
vitest.clearAllMocks(); // RĂ©initialisation des mocks
vitest.clearAllTimers(); // RĂ©initialisation des timers
});
vitest.clearAllMocks() // RĂ©initialisation des mocks
vitest.clearAllTimers() // RĂ©initialisation des timers
})

0 comments on commit cd9864f

Please sign in to comment.