From 727e62b8c512e4db53bb69008e9bb0a3f6ad0923 Mon Sep 17 00:00:00 2001 From: Nife <153874112+nife-codes@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:53:05 +0100 Subject: [PATCH 1/2] [ShipShield] Auto-fix: Add tests/example.test.js --- tests/example.test.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/example.test.js diff --git a/tests/example.test.js b/tests/example.test.js new file mode 100644 index 0000000..9939ad6 --- /dev/null +++ b/tests/example.test.js @@ -0,0 +1,19 @@ +// Example test file +// Install testing framework: npm install --save-dev jest + +describe('Example Test Suite', () => { + test('should add two numbers correctly', () => { + const result = 2 + 2; + expect(result).toBe(4); + }); + + test('should handle edge cases', () => { + expect(null).toBeNull(); + expect(undefined).toBeUndefined(); + }); +}); + +// Add this to package.json scripts: +// "test": "jest" +// "test:watch": "jest --watch" +// "test:coverage": "jest --coverage" From f9c675df9e1991a6a9724bcafa373beda057d91f Mon Sep 17 00:00:00 2001 From: Nife <153874112+nife-codes@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:53:07 +0100 Subject: [PATCH 2/2] [ShipShield] Auto-fix: Add .eslintrc.json --- .eslintrc.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..d444a8c --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,20 @@ +{ + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": [ + "eslint:recommended" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "rules": { + "no-console": "warn", + "no-unused-vars": "warn", + "semi": ["error", "always"], + "quotes": ["error", "single"] + } +}