diff --git a/front/src/applications/editor/tools/pointEdition/__tests__/utils.spec.ts b/front/src/applications/editor/tools/pointEdition/__tests__/utils.spec.ts index 927113777f6..1f09856bc34 100644 --- a/front/src/applications/editor/tools/pointEdition/__tests__/utils.spec.ts +++ b/front/src/applications/editor/tools/pointEdition/__tests__/utils.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { formatSignalingSystem } from 'applications/editor/tools/pointEdition/utils'; import type { SignalingSystemForm } from '../types'; diff --git a/front/src/applications/editor/tools/rangeEdition/__tests__/utils.spec.ts b/front/src/applications/editor/tools/rangeEdition/__tests__/utils.spec.ts index 2823bb35e90..ee504b9d6e0 100644 --- a/front/src/applications/editor/tools/rangeEdition/__tests__/utils.spec.ts +++ b/front/src/applications/editor/tools/rangeEdition/__tests__/utils.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { ApplicableTrackRange } from '../types'; import { makeSpeedRestrictionTrackRanges } from '../utils'; diff --git a/front/src/applications/editor/tools/routeEdition/utils.test.ts b/front/src/applications/editor/tools/routeEdition/utils.test.ts index ab322c76280..c29744c17c8 100644 --- a/front/src/applications/editor/tools/routeEdition/utils.test.ts +++ b/front/src/applications/editor/tools/routeEdition/utils.test.ts @@ -1,6 +1,7 @@ import { lineString } from '@turf/helpers'; import length from '@turf/length'; import type { LineString, Point, Position } from 'geojson'; +import { describe, it, expect } from 'vitest'; import { editoastToEditorEntity } from 'applications/editor/data/utils'; import type { DetectorEntity } from 'applications/editor/tools/pointEdition/types'; diff --git a/front/src/applications/operationalStudies/__tests__/upsertMapWaypointsInOperationalPoints.spec.ts b/front/src/applications/operationalStudies/__tests__/upsertMapWaypointsInOperationalPoints.spec.ts index 2ac8399f18b..b0da1af86b4 100644 --- a/front/src/applications/operationalStudies/__tests__/upsertMapWaypointsInOperationalPoints.spec.ts +++ b/front/src/applications/operationalStudies/__tests__/upsertMapWaypointsInOperationalPoints.spec.ts @@ -1,4 +1,5 @@ import type { TFunction } from 'i18next'; +import { describe, it, expect } from 'vitest'; import { pathInputsEndingWithTwoWaypointsByMap, diff --git a/front/src/applications/operationalStudies/__tests__/utils.spec.ts b/front/src/applications/operationalStudies/__tests__/utils.spec.ts index 6a9d983311d..5b913f6cb32 100644 --- a/front/src/applications/operationalStudies/__tests__/utils.spec.ts +++ b/front/src/applications/operationalStudies/__tests__/utils.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { formatElectrificationRanges, isScheduledPointsNotHonored, diff --git a/front/src/applications/operationalStudies/hooks/__tests__/useSetupItineraryForTrainUpdate.spec.ts b/front/src/applications/operationalStudies/hooks/__tests__/useSetupItineraryForTrainUpdate.spec.ts index cf385f0dfe9..9b7b93fcf81 100644 --- a/front/src/applications/operationalStudies/hooks/__tests__/useSetupItineraryForTrainUpdate.spec.ts +++ b/front/src/applications/operationalStudies/hooks/__tests__/useSetupItineraryForTrainUpdate.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { PathfindingResult } from 'common/api/osrdEditoastApi'; import { updatePathStepsFromOperationalPoints } from '../useSetupItineraryForTrainUpdate'; diff --git a/front/src/applications/stdcm/utils/__tests__/simulationReportSheet.spec.ts b/front/src/applications/stdcm/utils/__tests__/simulationReportSheet.spec.ts index 19d45c1826b..6b5d5dfe18f 100644 --- a/front/src/applications/stdcm/utils/__tests__/simulationReportSheet.spec.ts +++ b/front/src/applications/stdcm/utils/__tests__/simulationReportSheet.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { generateCodeNumber, getStopDurationTime, diff --git a/front/src/common/IntervalsDataViz/data.test.ts b/front/src/common/IntervalsDataViz/data.test.ts index 551a61c4761..2e500fc38fb 100644 --- a/front/src/common/IntervalsDataViz/data.test.ts +++ b/front/src/common/IntervalsDataViz/data.test.ts @@ -2,6 +2,7 @@ import along from '@turf/along'; import distance from '@turf/distance'; import type { LineString, FeatureCollection } from 'geojson'; import { tail, last } from 'lodash'; +import { describe, it, expect } from 'vitest'; import { getLineStringDistance, update, resizeSegment, splitAt, mergeIn } from './data'; import type { LinearMetadataItem } from './types'; diff --git a/front/src/modules/pathfinding/components/Pathfinding/__tests__/Pathfinding.spec.ts b/front/src/modules/pathfinding/components/Pathfinding/__tests__/Pathfinding.spec.ts index dc9408987f2..0afa1a69ab3 100644 --- a/front/src/modules/pathfinding/components/Pathfinding/__tests__/Pathfinding.spec.ts +++ b/front/src/modules/pathfinding/components/Pathfinding/__tests__/Pathfinding.spec.ts @@ -1,3 +1,5 @@ +import { describe, expect } from 'vitest'; + import { initialState } from 'modules/pathfinding/consts'; import { reducer } from 'modules/pathfinding/hooks/usePathfinding'; import type { PathfindingAction } from 'modules/pathfinding/types'; diff --git a/front/src/modules/pathfinding/helpers/__tests__/getPathVoltages.spec.ts b/front/src/modules/pathfinding/helpers/__tests__/getPathVoltages.spec.ts index 4fdf547babb..435602cf4f8 100644 --- a/front/src/modules/pathfinding/helpers/__tests__/getPathVoltages.spec.ts +++ b/front/src/modules/pathfinding/helpers/__tests__/getPathVoltages.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { PathProperties } from 'common/api/osrdEditoastApi'; import getPathVoltages from '../getPathVoltages'; diff --git a/front/src/modules/powerRestriction/helpers/__tests__/createPathStep.spec.ts b/front/src/modules/powerRestriction/helpers/__tests__/createPathStep.spec.ts index 72d965697f4..ab28079677a 100644 --- a/front/src/modules/powerRestriction/helpers/__tests__/createPathStep.spec.ts +++ b/front/src/modules/powerRestriction/helpers/__tests__/createPathStep.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { TrackRange } from 'common/api/osrdEditoastApi'; import { findTrackSectionOffset } from '../createPathStep'; diff --git a/front/src/modules/powerRestriction/helpers/__tests__/formatPowerRestrionRangesWithHandle.spec.ts b/front/src/modules/powerRestriction/helpers/__tests__/formatPowerRestrionRangesWithHandle.spec.ts index 03b84fc5854..cb5fb3daa13 100644 --- a/front/src/modules/powerRestriction/helpers/__tests__/formatPowerRestrionRangesWithHandle.spec.ts +++ b/front/src/modules/powerRestriction/helpers/__tests__/formatPowerRestrionRangesWithHandle.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { effortCurves, voltageRangesForPowerRestrictions, diff --git a/front/src/modules/powerRestriction/helpers/__tests__/powerRestrictionWarnings.spec.ts b/front/src/modules/powerRestriction/helpers/__tests__/powerRestrictionWarnings.spec.ts index 236cf415438..6aafb849140 100644 --- a/front/src/modules/powerRestriction/helpers/__tests__/powerRestrictionWarnings.spec.ts +++ b/front/src/modules/powerRestriction/helpers/__tests__/powerRestrictionWarnings.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { PowerRestrictionWarnings } from 'modules/powerRestriction/types'; import { diff --git a/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorCurves.spec.ts b/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorCurves.spec.ts index b6dba86273f..9c4b4ce3b24 100644 --- a/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorCurves.spec.ts +++ b/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorCurves.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { createEmptyCurve, createEmptyCurves, diff --git a/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorForm.spec.ts b/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorForm.spec.ts index f0a63a94687..167b3a5cf1c 100644 --- a/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorForm.spec.ts +++ b/front/src/modules/rollingStock/components/RollingStockEditor/__tests__/RollingStockEditorForm.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { getDefaultRollingStockMode, getRollingStockEditorDefaultValues, diff --git a/front/src/modules/rollingStock/components/RollingStockSelector/__tests__/RollingStockModal.spec.ts b/front/src/modules/rollingStock/components/RollingStockSelector/__tests__/RollingStockModal.spec.ts index 93621363fc0..5cf895063f9 100644 --- a/front/src/modules/rollingStock/components/RollingStockSelector/__tests__/RollingStockModal.spec.ts +++ b/front/src/modules/rollingStock/components/RollingStockSelector/__tests__/RollingStockModal.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { LightRollingStock } from 'common/api/osrdEditoastApi'; import { rollingStockPassesEnergeticModeFilters } from 'modules/rollingStock/hooks/useFilterRollingStock'; diff --git a/front/src/modules/rollingStock/helpers/__tests__/electric.spec.ts b/front/src/modules/rollingStock/helpers/__tests__/electric.spec.ts index a7bdbf2d798..c7aaef0d830 100644 --- a/front/src/modules/rollingStock/helpers/__tests__/electric.spec.ts +++ b/front/src/modules/rollingStock/helpers/__tests__/electric.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { RollingStock } from 'common/api/osrdEditoastApi'; import { getSupportedElectrification } from '../electric'; diff --git a/front/src/modules/rollingStock/helpers/__tests__/powerRestrictions.spec.ts b/front/src/modules/rollingStock/helpers/__tests__/powerRestrictions.spec.ts index 7a522110054..b71321aef0c 100644 --- a/front/src/modules/rollingStock/helpers/__tests__/powerRestrictions.spec.ts +++ b/front/src/modules/rollingStock/helpers/__tests__/powerRestrictions.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { effortCurves } from 'modules/powerRestriction/helpers/__tests__/sampleData'; import { getRollingStockPowerRestrictionsByMode } from '../powerRestrictions'; diff --git a/front/src/modules/rollingStock/helpers/__tests__/utils.spec.ts b/front/src/modules/rollingStock/helpers/__tests__/utils.spec.ts index ce6aa6c2b1d..1305e44b47b 100644 --- a/front/src/modules/rollingStock/helpers/__tests__/utils.spec.ts +++ b/front/src/modules/rollingStock/helpers/__tests__/utils.spec.ts @@ -1,5 +1,6 @@ import type { TFunction } from 'i18next'; import { floor } from 'lodash'; +import { describe, it, expect } from 'vitest'; import type { EffortCurves } from 'common/api/osrdEditoastApi'; import type { InputGroupSNCFValue } from 'common/BootstrapSNCF/InputGroupSNCF'; diff --git a/front/src/modules/rollingStock/hooks/__tests__/useFilterRollingStock.test.tsx b/front/src/modules/rollingStock/hooks/__tests__/useFilterRollingStock.test.tsx index f6673697af4..324ae5d25c1 100644 --- a/front/src/modules/rollingStock/hooks/__tests__/useFilterRollingStock.test.tsx +++ b/front/src/modules/rollingStock/hooks/__tests__/useFilterRollingStock.test.tsx @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { computeFilter, type RollingStockFilters } from '../useFilterRollingStock'; describe('computeFilter', () => { diff --git a/front/src/modules/simulationResult/components/ChartHelpers/__tests__/ChartHelpers.spec.ts b/front/src/modules/simulationResult/components/ChartHelpers/__tests__/ChartHelpers.spec.ts index 626b41310d0..5bbb4e29444 100644 --- a/front/src/modules/simulationResult/components/ChartHelpers/__tests__/ChartHelpers.spec.ts +++ b/front/src/modules/simulationResult/components/ChartHelpers/__tests__/ChartHelpers.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { LIST_VALUES, CHART_AXES } from 'modules/simulationResult/consts'; import simulationTrain from '../../../../../../tests/assets/operationStudies/simulationTrain'; diff --git a/front/src/modules/simulationResult/components/SimulationResultsMap/__tests__/helpers.spec.ts b/front/src/modules/simulationResult/components/SimulationResultsMap/__tests__/helpers.spec.ts index 12f3b4539ed..9ffe9ba1c1d 100644 --- a/front/src/modules/simulationResult/components/SimulationResultsMap/__tests__/helpers.spec.ts +++ b/front/src/modules/simulationResult/components/SimulationResultsMap/__tests__/helpers.spec.ts @@ -1,3 +1,5 @@ +import { describe, it } from 'vitest'; + // TODO: fix warped map - adapt this test describe('getSimulationHoverPositions', () => { it.skip('should not crash when headPosition exists but tailPosition does not', () => { diff --git a/front/src/modules/simulationResult/components/SpeedSpaceChart/__tests__/helpers.spec.ts b/front/src/modules/simulationResult/components/SpeedSpaceChart/__tests__/helpers.spec.ts index 0cb1d96c90e..808f76924e4 100644 --- a/front/src/modules/simulationResult/components/SpeedSpaceChart/__tests__/helpers.spec.ts +++ b/front/src/modules/simulationResult/components/SpeedSpaceChart/__tests__/helpers.spec.ts @@ -3,6 +3,7 @@ import type { ElectrificationValues, LayerData, } from '@osrd-project/ui-speedspacechart/dist/types/chartTypes'; +import { describe, it, expect } from 'vitest'; import type { PathPropertiesFormatted, PositionData } from 'applications/operationalStudies/types'; diff --git a/front/src/modules/timesStops/helpers/__tests__/arrivalTime.spec.ts b/front/src/modules/timesStops/helpers/__tests__/arrivalTime.spec.ts index 2c023ddfc69..4a156fee197 100644 --- a/front/src/modules/timesStops/helpers/__tests__/arrivalTime.spec.ts +++ b/front/src/modules/timesStops/helpers/__tests__/arrivalTime.spec.ts @@ -1,4 +1,4 @@ -import { describe } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { time2sec } from 'utils/timeManipulation'; diff --git a/front/src/modules/timesStops/helpers/__tests__/computeMargins.spec.ts b/front/src/modules/timesStops/helpers/__tests__/computeMargins.spec.ts index 226b535a16c..9cea6c8ef86 100644 --- a/front/src/modules/timesStops/helpers/__tests__/computeMargins.spec.ts +++ b/front/src/modules/timesStops/helpers/__tests__/computeMargins.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import type { SimulationResponseSuccess } from 'applications/operationalStudies/types'; import type { TrainScheduleResult } from 'common/api/osrdEditoastApi'; diff --git a/front/src/modules/trainschedule/components/DriverTrainSchedule/__tests__/utils.spec.ts b/front/src/modules/trainschedule/components/DriverTrainSchedule/__tests__/utils.spec.ts index ba471014e69..74b0ac661cc 100644 --- a/front/src/modules/trainschedule/components/DriverTrainSchedule/__tests__/utils.spec.ts +++ b/front/src/modules/trainschedule/components/DriverTrainSchedule/__tests__/utils.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { findActualVmax } from '../utils'; describe('findActualVmax', () => { diff --git a/front/src/reducers/editor/__tests__/editorReducer.spec.ts b/front/src/reducers/editor/__tests__/editorReducer.spec.ts index c7b791f3014..832bba434c4 100644 --- a/front/src/reducers/editor/__tests__/editorReducer.spec.ts +++ b/front/src/reducers/editor/__tests__/editorReducer.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { editorInitialState, editorSliceActions, editorSlice } from 'reducers/editor'; import { createStoreWithoutMiddleware } from 'store'; diff --git a/front/src/reducers/main/mainReducer.spec.ts b/front/src/reducers/main/mainReducer.spec.ts index cac44f93824..bf56bd68459 100644 --- a/front/src/reducers/main/mainReducer.spec.ts +++ b/front/src/reducers/main/mainReducer.spec.ts @@ -1,4 +1,4 @@ -import { expect, it } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { mainInitialState, diff --git a/front/src/reducers/map/mapReducer.spec.ts b/front/src/reducers/map/mapReducer.spec.ts index 56d40da16aa..2e44e6e57f6 100644 --- a/front/src/reducers/map/mapReducer.spec.ts +++ b/front/src/reducers/map/mapReducer.spec.ts @@ -1,4 +1,4 @@ -import { describe, expect } from 'vitest'; +import { describe, it, expect } from 'vitest'; import type { MapState, Viewport } from 'reducers/map'; import { diff --git a/front/src/reducers/mapViewer/__tests__/mapViewerReducer.spec.ts b/front/src/reducers/mapViewer/__tests__/mapViewerReducer.spec.ts index 323d8157192..3d92ccfaafa 100644 --- a/front/src/reducers/mapViewer/__tests__/mapViewerReducer.spec.ts +++ b/front/src/reducers/mapViewer/__tests__/mapViewerReducer.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { mapViewerInitialState, mapViewerSlice, mapViewerSliceActions } from 'reducers/mapViewer'; import { createStoreWithoutMiddleware } from 'store'; diff --git a/front/src/reducers/osrdconf/__tests__/helpers.spec.ts b/front/src/reducers/osrdconf/__tests__/helpers.spec.ts index f4dd9a9f7ff..c2c82bb98e7 100644 --- a/front/src/reducers/osrdconf/__tests__/helpers.spec.ts +++ b/front/src/reducers/osrdconf/__tests__/helpers.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { ArrivalTimeTypes } from 'applications/stdcmV2/types'; import { computeLinkedOriginTimes, updatePathStepAtIndex } from '../helpers'; diff --git a/front/src/reducers/osrdconf/operationalStudiesConf/simulationConfReducers.spec.ts b/front/src/reducers/osrdconf/operationalStudiesConf/simulationConfReducers.spec.ts index 6a38846934e..665ae602e7a 100644 --- a/front/src/reducers/osrdconf/operationalStudiesConf/simulationConfReducers.spec.ts +++ b/front/src/reducers/osrdconf/operationalStudiesConf/simulationConfReducers.spec.ts @@ -1,4 +1,4 @@ -import { describe, expect } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { operationalStudiesConfSlice } from 'reducers/osrdconf/operationalStudiesConf'; import { defaultCommonConf } from 'reducers/osrdconf/osrdConfCommon'; diff --git a/front/src/reducers/osrdconf/osrdConfCommon/__tests__/utils.ts b/front/src/reducers/osrdconf/osrdConfCommon/__tests__/utils.ts index 804e0ab8d9b..ecd296ae113 100644 --- a/front/src/reducers/osrdconf/osrdConfCommon/__tests__/utils.ts +++ b/front/src/reducers/osrdconf/osrdConfCommon/__tests__/utils.ts @@ -1,4 +1,5 @@ import { compact, last, omit } from 'lodash'; +import { describe, it, expect } from 'vitest'; import { ArrivalTimeTypes, StdcmStopTypes } from 'applications/stdcmV2/types'; import type { Distribution, Infra, TrainScheduleBase } from 'common/api/osrdEditoastApi'; diff --git a/front/src/reducers/osrdconf/stdcmConf/stdcmConfReducers.spec.ts b/front/src/reducers/osrdconf/stdcmConf/stdcmConfReducers.spec.ts index 273407ff82b..c37f07753d1 100644 --- a/front/src/reducers/osrdconf/stdcmConf/stdcmConfReducers.spec.ts +++ b/front/src/reducers/osrdconf/stdcmConf/stdcmConfReducers.spec.ts @@ -1,5 +1,5 @@ import { last } from 'lodash'; -import { describe, expect } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { ArrivalTimeTypes } from 'applications/stdcmV2/types'; import { diff --git a/front/src/reducers/simulationResults/simulationResultsReducer.spec.ts b/front/src/reducers/simulationResults/simulationResultsReducer.spec.ts index da9fb24e47a..f7285c48968 100644 --- a/front/src/reducers/simulationResults/simulationResultsReducer.spec.ts +++ b/front/src/reducers/simulationResults/simulationResultsReducer.spec.ts @@ -1,4 +1,4 @@ -import { describe, expect } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { createStoreWithoutMiddleware } from 'store'; diff --git a/front/src/utils/__tests__/array.spec.ts b/front/src/utils/__tests__/array.spec.ts index 981d1922b23..124145940c0 100644 --- a/front/src/utils/__tests__/array.spec.ts +++ b/front/src/utils/__tests__/array.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { addElementAtIndex, isEmptyArray, splitArrayByFirstLetter } from 'utils/array'; describe('isEmptyArray', () => { diff --git a/front/src/utils/__tests__/batch.spec.ts b/front/src/utils/__tests__/batch.spec.ts index 95ee660cf17..e4486584b8d 100644 --- a/front/src/utils/__tests__/batch.spec.ts +++ b/front/src/utils/__tests__/batch.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { getBatchPackage } from '../batch'; const trainIds = [...Array(25)].map((_, i) => i); diff --git a/front/src/utils/__tests__/constants.spec.ts b/front/src/utils/__tests__/constants.spec.ts index 793cd64cf42..d7a069a3c7a 100644 --- a/front/src/utils/__tests__/constants.spec.ts +++ b/front/src/utils/__tests__/constants.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { makeEnumBooleans } from 'utils/constants'; describe('makeEnumBooleans', () => { diff --git a/front/src/utils/__tests__/date.spec.ts b/front/src/utils/__tests__/date.spec.ts index 550917b549a..57140f5b962 100644 --- a/front/src/utils/__tests__/date.spec.ts +++ b/front/src/utils/__tests__/date.spec.ts @@ -1,4 +1,4 @@ -import { describe, it } from 'vitest'; +import { describe, it, expect } from 'vitest'; import { dateTimeToIso, diff --git a/front/src/utils/__tests__/geometry.test.ts b/front/src/utils/__tests__/geometry.test.ts index ad3767e7ef9..2ece841b32f 100644 --- a/front/src/utils/__tests__/geometry.test.ts +++ b/front/src/utils/__tests__/geometry.test.ts @@ -1,5 +1,6 @@ import { point, lineString, featureCollection } from '@turf/helpers'; import type { Feature, Point } from 'geojson'; +import { describe, it, expect } from 'vitest'; import type { GeoJsonLineString as LineString } from 'common/api/osrdEditoastApi'; import { getTangent, getCurrentBearing, nearestPointOnLine } from 'utils/geometry'; diff --git a/front/src/utils/__tests__/numbers.spec.ts b/front/src/utils/__tests__/numbers.spec.ts index 4b17d5b860b..da8ea735e13 100644 --- a/front/src/utils/__tests__/numbers.spec.ts +++ b/front/src/utils/__tests__/numbers.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { budgetFormat, isFloat, isInvalidFloatNumber, stripDecimalDigits } from 'utils/numbers'; import { NARROW_NO_BREAK_SPACE, NO_BREAK_SPACE } from 'utils/strings'; diff --git a/front/src/utils/__tests__/physics.spec.ts b/front/src/utils/__tests__/physics.spec.ts index 168caf4ab53..bdce1c17745 100644 --- a/front/src/utils/__tests__/physics.spec.ts +++ b/front/src/utils/__tests__/physics.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { jouleToKwh, minutePer100km } from 'utils/physics'; describe('jouleToKwh', () => { diff --git a/front/src/utils/__tests__/strings.spec.ts b/front/src/utils/__tests__/strings.spec.ts index bb699178157..75ba09cd972 100644 --- a/front/src/utils/__tests__/strings.spec.ts +++ b/front/src/utils/__tests__/strings.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { capitalizeFirstLetter, conditionalStringConcat } from 'utils/strings'; describe('conditionalStringConcat', () => { diff --git a/front/src/utils/__tests__/timeManipulation.spec.ts b/front/src/utils/__tests__/timeManipulation.spec.ts index ab03cedb4c4..cf6984c3da3 100644 --- a/front/src/utils/__tests__/timeManipulation.spec.ts +++ b/front/src/utils/__tests__/timeManipulation.spec.ts @@ -1,3 +1,5 @@ +import { describe, it, expect } from 'vitest'; + import { ISO8601Duration2sec } from 'utils/timeManipulation'; describe('ISO8601Duration2sec', () => {