diff --git a/code/package-lock.json b/code/package-lock.json index da2ded2cd..ed709f32b 100644 --- a/code/package-lock.json +++ b/code/package-lock.json @@ -13,7 +13,7 @@ "@testing-library/user-event": "^13.5.0", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-scripts": "5.0.1", + "react-scripts": "^5.0.1", "web-vitals": "^2.1.4" } }, diff --git a/code/package.json b/code/package.json index 1fdefde26..5c25a6f0a 100644 --- a/code/package.json +++ b/code/package.json @@ -8,7 +8,7 @@ "@testing-library/user-event": "^13.5.0", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-scripts": "5.0.1", + "react-scripts": "^5.0.1", "web-vitals": "^2.1.4" }, "scripts": { diff --git a/code/src/__tests__/sample.test.js b/code/src/__tests__/sample.test.js new file mode 100644 index 000000000..0e44f6cfb --- /dev/null +++ b/code/src/__tests__/sample.test.js @@ -0,0 +1,8 @@ +// To be deleted later +test('simple math test', () => { + expect(1 + 1).toBe(2); + }); + +test('simple math test 2', () => { + expect(1 + 1).toBe(3); // expected fail +}); \ No newline at end of file