-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assert): automatic describe it (#29)
* feat(assert): auto describe it * fix(listFiles): force node_modules removal * docs: improve description * docs: improve documentation * docs: fix broken links * docs: improve documentation * docs: improve documentation * docs: improve description * docs: improve image examples * docs: improve installation examples * docs: improve overview * chore: remove marked goals * feat: add debug option * docs: improve documentation
- Loading branch information
1 parent
9172160
commit 77c0b54
Showing
45 changed files
with
509 additions
and
276 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ node_modules | |
.DS_Store | ||
/lib | ||
/ci | ||
/playground | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Goals | ||
# 🧑🏻🎓 Goals | ||
|
||
## `fix:` | ||
## 🧑🏻🔧 `fix` | ||
|
||
- **assert:** improve logs for regex and functions inside arrays | ||
|
||
--- | ||
|
||
## `feat:` | ||
## 🚀 `feat` | ||
|
||
- **feat:** show message from `assert` like in popular "describe" and "it" if `describe` option is `true` | ||
- **feat:** show individual test execution time | ||
- **feat:** allow to limit concurrency in parallel runs | ||
- **cli:** show individual test execution time | ||
- **poku:** allow to limit concurrency in parallel runs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,8 @@ | ||
import { EOL } from 'node:os'; | ||
import process from 'node:process'; | ||
|
||
let lastLenght: number = 0; | ||
export const hr = () => { | ||
const line = '⎯'.repeat(process.stdout.columns - 10); | ||
|
||
export const hr = (size?: number) => { | ||
const pad = 10; | ||
const limit = process.stdout.columns - pad; | ||
const fileLenght = typeof size === 'number' ? Math.floor(size / 2) + pad : 0; | ||
const columns = | ||
fileLenght > 0 && fileLenght <= limit | ||
? fileLenght | ||
: lastLenght > 0 | ||
? lastLenght | ||
: limit; | ||
const line = '⎯'.repeat(columns); | ||
lastLenght = columns; | ||
|
||
console.log(`${EOL}\x1b[2m${line}\x1b[0m${EOL}`); | ||
console.log(`${EOL}\x1b[2m\x1b[90m${line}\x1b[0m${EOL}`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.