From 48b695e82a280e7385c3c359c004e81a9f9b4799 Mon Sep 17 00:00:00 2001 From: teobaldotech <81770256+teobaldotech@users.noreply.github.com> Date: Thu, 15 Oct 2026 15:06:16 -0300 Subject: [PATCH 1/2] Modify package.json scripts for testing enhancements Updated scripts section to include watch and CI commands. --- package.json | 109 +++++++++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 52 deletions(-) diff --git a/package.json b/package.json index 2086e447a3..0c9e5ca369 100644 --- a/package.json +++ b/package.json @@ -1,54 +1,59 @@ +(Sem assunto) +teo machado +VocĂȘ { - "name": "javascript-algorithms-and-data-structures", - "version": "0.0.4", - "description": "Algorithms and data-structures implemented on JavaScript", - "repository": { - "type": "git", - "url": "git+https://github.com/trekhleb/javascript-algorithms.git" - }, - "keywords": [ - "computer-science", - "cs", - "algorithms", - "data-structures", - "javascript", - "algorithm", - "javascript-algorithms", - "sorting-algorithms", - "graph", - "tree", - "interview", - "interview-preparation" - ], - "author": "Oleksii Trekhleb (https://trekhleb.dev)", - "license": "MIT", - "bugs": { - "url": "https://github.com/trekhleb/javascript-algorithms/issues" - }, - "homepage": "https://github.com/trekhleb/javascript-algorithms#readme", - "main": "index.js", - "scripts": { - "lint": "eslint ./src/**", - "test": "jest", - "coverage": "npm run test -- --coverage", - "ci": "npm run lint && npm run coverage", - "prepare": "husky" - }, - "devDependencies": { - "@babel/cli": "^7.28.6", - "@babel/preset-env": "^7.29.0", - "@types/jest": "^30.0.0", - "eslint": "^8.57.1", - "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jest": "^27.9.0", - "eslint-plugin-jsx-a11y": "^6.10.2", - "husky": "^9.1.7", - "jest": "^30.2.0", - "pngjs": "^7.0.0" - }, - "engines": { - "node": ">=22.0.0", - "npm": ">=10.0.0" - } +"name": "javascript-algorithms-and-data-structures", +"version": "0.0.4", +"description": "Algorithms and data structures implemented in JavaScript", +"repository": { +"type": "git", +"url": "git+https://github.com/trekhleb/javascript-algorithms.git" +}, +"keywords": [ +"computer-science", +"cs", +"algorithms", +"data-structures", +"javascript", +"algorithm", +"javascript-algorithms", +"sorting-algorithms", +"graph", +"tree", +"interview", +"interview-preparation" +], +"author": "Oleksii Trekhleb (https://trekhleb.dev)", +"license": "MIT", +"bugs": { +"url": "https://github.com/trekhleb/javascript-algorithms/issues" +}, +"homepage": "https://github.com/trekhleb/javascript-algorithms#readme", +"main": "index.js", +"scripts": { +"lint": "eslint "src/**/*.js"", +"test": "jest", +"test:watch": "jest --watch", +"test:ci": "jest --ci --coverage --runInBand", +"coverage": "jest --coverage", +"ci": "npm run lint && npm run test:ci", +"prepare": "husky" +}, +"devDependencies": { +"@babel/cli": "^7.28.6", +"@babel/preset-env": "^7.29.0", +"@types/jest": "^30.0.0", +"eslint": "^8.57.1", +"eslint-config-airbnb": "^19.0.4", +"eslint-plugin-import": "^2.32.0", +"eslint-plugin-jest": "^27.9.0", +"eslint-plugin-jsx-a11y": "^6.10.2", +"husky": "^9.1.7", +"jest": "^30.2.0", +"pngjs": "^7.0.0" +}, +"engines": { +"node": ">=22.0.0", +"npm": ">=10.0.0" } +} From 083d83623bb4a99588ca19e6e3e7619491dd852c Mon Sep 17 00:00:00 2001 From: teobaldotech <81770256+teobaldotech@users.noreply.github.com> Date: Fri, 23 Oct 2026 15:13:35 -0300 Subject: [PATCH 2/2] Atualizar o package.json --- package.json | 111 +++++++++++++++++++++++++-------------------------- 1 file changed, 54 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index 0c9e5ca369..ec1f1505a1 100644 --- a/package.json +++ b/package.json @@ -1,59 +1,56 @@ -(Sem assunto) -teo machado -VocĂȘ { -"name": "javascript-algorithms-and-data-structures", -"version": "0.0.4", -"description": "Algorithms and data structures implemented in JavaScript", -"repository": { -"type": "git", -"url": "git+https://github.com/trekhleb/javascript-algorithms.git" -}, -"keywords": [ -"computer-science", -"cs", -"algorithms", -"data-structures", -"javascript", -"algorithm", -"javascript-algorithms", -"sorting-algorithms", -"graph", -"tree", -"interview", -"interview-preparation" -], -"author": "Oleksii Trekhleb (https://trekhleb.dev)", -"license": "MIT", -"bugs": { -"url": "https://github.com/trekhleb/javascript-algorithms/issues" -}, -"homepage": "https://github.com/trekhleb/javascript-algorithms#readme", -"main": "index.js", -"scripts": { -"lint": "eslint "src/**/*.js"", -"test": "jest", -"test:watch": "jest --watch", -"test:ci": "jest --ci --coverage --runInBand", -"coverage": "jest --coverage", -"ci": "npm run lint && npm run test:ci", -"prepare": "husky" -}, -"devDependencies": { -"@babel/cli": "^7.28.6", -"@babel/preset-env": "^7.29.0", -"@types/jest": "^30.0.0", -"eslint": "^8.57.1", -"eslint-config-airbnb": "^19.0.4", -"eslint-plugin-import": "^2.32.0", -"eslint-plugin-jest": "^27.9.0", -"eslint-plugin-jsx-a11y": "^6.10.2", -"husky": "^9.1.7", -"jest": "^30.2.0", -"pngjs": "^7.0.0" -}, -"engines": { -"node": ">=22.0.0", -"npm": ">=10.0.0" + "name": "javascript-algorithms-and-data-structures", + "version": "0.0.4", + "description": "Algorithms and data structures implemented in JavaScript", + "repository": { + "type": "git", + "url": "git+https://github.com/trekhleb/javascript-algorithms.git" + }, + "keywords": [ + "computer-science", + "cs", + "algorithms", + "data-structures", + "javascript", + "algorithm", + "javascript-algorithms", + "sorting-algorithms", + "graph", + "tree", + "interview", + "interview-preparation" + ], + "author": "Oleksii Trekhleb (https://trekhleb.dev)", + "license": "MIT", + "bugs": { + "url": "https://github.com/trekhleb/javascript-algorithms/issues" + }, + "homepage": "https://github.com/trekhleb/javascript-algorithms#readme", + "main": "index.js", + "scripts": { + "lint": "eslint \"src/**/*.js\"", + "test": "jest", + "test:watch": "jest --watch", + "test:ci": "jest --ci --coverage --runInBand", + "coverage": "jest --coverage", + "ci": "npm run lint && npm run test:ci", + "prepare": "husky" + }, + "devDependencies": { + "@babel/cli": "^7.28.6", + "@babel/preset-env": "^7.29.0", + "@types/jest": "^30.0.0", + "eslint": "^8.57.1", + "eslint-config-airbnb": "^19.0.4", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jest": "^27.9.0", + "eslint-plugin-jsx-a11y": "^6.10.2", + "husky": "^9.1.7", + "jest": "^30.2.0", + "pngjs": "^7.0.0" + }, + "engines": { + "node": ">=22.0.0", + "npm": ">=10.0.0" + } } -}