-
-
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.
fix(filter): include both .test. and .spec. as default (#27)
* chore(website): add robots.txt * fix(poku and CLI): include both .test. and .spec. as default filter * chore(CLI): improve hr
- Loading branch information
1 parent
f570b3c
commit 9172160
Showing
6 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
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,3 +1,11 @@ | ||
- **fix:** include both .test. and .spec. as default filter | ||
# Goals | ||
|
||
## `fix:` | ||
|
||
--- | ||
|
||
## `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 |
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,9 +1,20 @@ | ||
import { EOL } from 'node:os'; | ||
import process from 'node:process'; | ||
|
||
export const hr = () => { | ||
const columns = process.stdout.columns; | ||
const line = '⎯'.repeat(columns - 10 || 30); | ||
let lastLenght: number = 0; | ||
|
||
console.log(`\x1b[2m${line}\x1b[0m${EOL}`); | ||
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}`); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
User-agent: * | ||
Disallow: | ||
|
||
Sitemap: https://poku.dev/sitemap.xml |