From eb9af2f6ae220a7c4f04fbd54b9f4433e1039e68 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 6 Feb 2026 13:52:06 +0530 Subject: [PATCH] Initial commit --- .gitignore | 44 ++++++++++++++++++++++++++++++++++++++++++++ jest.setup.js | 4 ++++ package.json | 21 +++++++++++++++++++++ questions/index.md | 3 +++ readme.md | 0 5 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 jest.setup.js create mode 100644 package.json create mode 100644 questions/index.md create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..56c4a17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,44 @@ +# Dependencies +node_modules/ +.npm +package-lock.json +yarn.lock + +# Build output +dist/ +build/ +.next/ +out/ + +# Environment variables +.env +.env.local +.env.*.local + +# Logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Testing +coverage/ +.nyc_output/ + +# IDE & Editor +.vscode/ +.idea/ +*.swp +*.swo +*.swn +*~ +.DS_Store + +# OS +Thumbs.db +.DS_Store + +# Misc +.cache/ +.turbo/ diff --git a/jest.setup.js b/jest.setup.js new file mode 100644 index 0000000..21b9bc0 --- /dev/null +++ b/jest.setup.js @@ -0,0 +1,4 @@ +// Jest setup file to handle unhandled rejections +process.on('unhandledRejection', (reason, promise) => { + // silently ignore unhandled rejections in tests +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..e1da0a4 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "js-questions", + "version": "1.0.0", + "description": "JavaScript interview questions and solutions", + "scripts": { + "test": "jest" + }, + "jest": { + "testEnvironment": "node", + "collectCoverageFrom": [ + "solutions/**/*.js" + ], + "testMatch": [ + "**/*.test.js" + ] + }, + "devDependencies": { + "jest": "^29.7.0" + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" +} diff --git a/questions/index.md b/questions/index.md new file mode 100644 index 0000000..8064bad --- /dev/null +++ b/questions/index.md @@ -0,0 +1,3 @@ +## List of all Questions + +1. Async task scheduler (with concurrency limit) \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e69de29