Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir : __dirname,
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
}
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
---

### Prerequisites
1. Install [Node.js](https://nodejs.org/en/download/)

1. Install [Node.js](https://nodejs.org/en/download/)
2. Fork this repository: https://github.com/AlreadyBored/basic-testing
3. Clone your newly created repo locally: https://github.com/<%your_github_username%>/basic-testing/
4. Go to folder `basic-testing`
5. To install all dependencies use [`npm install`](https://docs.npmjs.com/cli/install)
3. Clone your newly created repo locally: https://github.com/<%your_github_username%>/basic-testing/
4. Go to folder `basic-testing`
5. To install all dependencies use [`npm install`](https://docs.npmjs.com/cli/install)
6. Run **test scripts** in command line.
7. You will see the number of skipped, passing and failing tests.

Expand All @@ -28,14 +29,16 @@ $ npm run test:verbose
---

#### Notes

1. We recommend you to use Node.js of version 24.x.x (24.10.0 or upper) LTS. If you use any of features, that does not supported by Node.js 24, there may be problems with task submit.
2. Please, be sure that each of your tests is limited to 30 sec.
3. Please, be sure you don't have any linter/TS compiler errors.

---

## General task description
Your task is to write unit tests for code, provided in file `index.ts`.

Your task is to write unit tests for code, provided in file `index.ts`.

---

Expand All @@ -55,7 +58,6 @@ Write your tests in `src/02-table-tests/index.test.ts`.

---


### **Error handling & async**

Your task is to test functions that work asynchronously/throw/reject exceptions..
Expand Down
10 changes: 5 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
Loading