diff --git a/package.json b/package.json index c65af1b..83ebd27 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,14 @@ "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"", "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,md}\" --config ./.prettierrc.json", - "preview": "vite preview" + "preview": "vite preview", + "test": "vitest" }, "dependencies": { "@aws-amplify/ui-react": "^5.3.1", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", + "@mapbox/mapbox-gl-directions": "4.1.1", "@mui/icons-material": "^5.14.8", "@mui/material": "^5.14.8", "aws-amplify": "^5.3.11", @@ -24,7 +26,7 @@ "eslint-config-airbnb": "^19.0.4", "i18next": "^23.5.1", "lodash": "^4.17.21", - "mapbox-gl": "^2.15.0", + "mapbox-gl": "^2.0.0 & 2.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-helmet-async": "^1.3.0", @@ -50,6 +52,7 @@ "eslint-plugin-react-refresh": "^0.4.3", "prettier": "^3.0.3", "typescript": "^5.0.2", - "vite": "^4.4.5" + "vite": "^4.4.5", + "vitest": "^0.34.6" } } diff --git a/src/test/App.test.jsx b/src/test/App.test.jsx new file mode 100644 index 0000000..32726f2 --- /dev/null +++ b/src/test/App.test.jsx @@ -0,0 +1,11 @@ +import { describe, it, expect } from 'vitest'; + +describe('something truthy and falsy', () => { + it('true to be true', () => { + expect(true).toBe(true); + }); + + it('false to be false', () => { + expect(false).toBe(false); + }); +}); \ No newline at end of file