;
export async function poku(
- targetDirs: string | string[],
+ targetPaths: string | string[],
configs?: Configs
): Promise;
export async function poku(
- targetDirs: string | string[],
+ targetPaths: string | string[],
configs?: Configs
): Promise {
let code: Code = 0;
- const prepareDirs = forceArray(targetDirs);
+ const prepareDirs = forceArray(targetPaths);
const dirs = prepareDirs.length > 0 ? prepareDirs : ['./'];
const showLogs = !isQuiet(configs);
diff --git a/src/services/run-tests.ts b/src/services/run-tests.ts
index 6b8ff3b7..40f5f23b 100644
--- a/src/services/run-tests.ts
+++ b/src/services/run-tests.ts
@@ -3,7 +3,7 @@ import { EOL } from 'node:os';
import path from 'node:path';
import { runner } from '../helpers/runner.js';
import { indentation } from '../helpers/indentation.js';
-import { listFiles, sanitizePath } from '../modules/list-files.js';
+import { isFile, listFiles, sanitizePath } from '../modules/list-files.js';
import { hr } from '../helpers/hr.js';
import { format } from '../helpers/format.js';
import { runTestFile } from './run-test-file.js';
@@ -22,7 +22,7 @@ export const runTests = async (
const cwd = process.cwd();
const testDir = path.join(cwd, sanitizePath(dir));
const currentDir = path.relative(cwd, testDir);
- const files = listFiles(testDir, undefined, configs);
+ const files = isFile(dir) ? [dir] : listFiles(testDir, undefined, configs);
const totalTests = files.length;
const showLogs = !isQuiet(configs);
@@ -73,7 +73,7 @@ export const runTestsParallel = async (
): Promise => {
const cwd = process.cwd();
const testDir = path.join(cwd, dir);
- const files = listFiles(testDir, undefined, configs);
+ const files = isFile(dir) ? [dir] : listFiles(testDir, undefined, configs);
const promises = files.map(async (filePath) => {
const testPassed = await runTestFile(filePath, configs);
diff --git a/website/docs/documentation/poku/configs/debug.mdx b/website/docs/documentation/poku/configs/debug.mdx
index 320186cb..cc5efb07 100644
--- a/website/docs/documentation/poku/configs/debug.mdx
+++ b/website/docs/documentation/poku/configs/debug.mdx
@@ -4,7 +4,7 @@ sidebar_position: 6
# `debug`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `debug: boolean`
diff --git a/website/docs/documentation/poku/configs/exclude.mdx b/website/docs/documentation/poku/configs/exclude.mdx
index 1b8d0682..4e1656f7 100644
--- a/website/docs/documentation/poku/configs/exclude.mdx
+++ b/website/docs/documentation/poku/configs/exclude.mdx
@@ -4,7 +4,7 @@ sidebar_position: 4
# `exclude`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `exclude: RegExp | RegExp[]`
diff --git a/website/docs/documentation/poku/configs/filter.mdx b/website/docs/documentation/poku/configs/filter.mdx
index 9ba57d77..7d8c97c1 100644
--- a/website/docs/documentation/poku/configs/filter.mdx
+++ b/website/docs/documentation/poku/configs/filter.mdx
@@ -4,7 +4,7 @@ sidebar_position: 2
# `filter`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `filter: RegExp`
diff --git a/website/docs/documentation/poku/configs/no-exit.mdx b/website/docs/documentation/poku/configs/no-exit.mdx
index ebf76ddc..bcf57767 100644
--- a/website/docs/documentation/poku/configs/no-exit.mdx
+++ b/website/docs/documentation/poku/configs/no-exit.mdx
@@ -4,7 +4,7 @@ sidebar_position: 7
# `noExit`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `noExit: boolean`
diff --git a/website/docs/documentation/poku/configs/parallel.mdx b/website/docs/documentation/poku/configs/parallel.mdx
index 6c3d8b32..ad6f3c62 100644
--- a/website/docs/documentation/poku/configs/parallel.mdx
+++ b/website/docs/documentation/poku/configs/parallel.mdx
@@ -4,7 +4,7 @@ sidebar_position: 1
# `parallel`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `parallel: boolean`
diff --git a/website/docs/documentation/poku/configs/platform.mdx b/website/docs/documentation/poku/configs/platform.mdx
index ec294562..6937bdbe 100644
--- a/website/docs/documentation/poku/configs/platform.mdx
+++ b/website/docs/documentation/poku/configs/platform.mdx
@@ -4,7 +4,7 @@ sidebar_position: 3
# `platform`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `platform: "node" | "bun" | "deno"`
diff --git a/website/docs/documentation/poku/configs/quiet.mdx b/website/docs/documentation/poku/configs/quiet.mdx
index aa4007be..8984a43c 100644
--- a/website/docs/documentation/poku/configs/quiet.mdx
+++ b/website/docs/documentation/poku/configs/quiet.mdx
@@ -4,7 +4,7 @@ sidebar_position: 5
# `quiet`
-> `poku(targetDirs: string | string[], configs?: Configs)`
+> `poku(targetPaths: string | string[], configs?: Configs)`
>
> `quiet: boolean`
diff --git a/website/docs/documentation/poku/include-files.mdx b/website/docs/documentation/poku/include-files.mdx
index 86947a7b..f807899a 100644
--- a/website/docs/documentation/poku/include-files.mdx
+++ b/website/docs/documentation/poku/include-files.mdx
@@ -4,18 +4,18 @@ sidebar_position: 1
# Include Directories
-> `poku(targetDirs: string | string[])`
+> `poku(targetPaths: string | string[])`
>
> By default, **Poku** searches for _`.test.`_ and `.spec.` files, but you can customize it using the [`filter`](/docs/documentation/poku/configs/filter) option.
## API (_in-code_)
```ts
-poku('targetDir');
+poku('targetePath');
```
```ts
-poku(['targetDirA', 'targetDirB']);
+poku(['targetePathA', 'targetePathB']);
```
```ts
@@ -29,11 +29,11 @@ By setting the directories as the **last argument**:
> _Since **1.3.0**_
```bash
-npx poku targetDir
+npx poku targetePath
```
```bash
-npx poku targetDirA,targetDirB
+npx poku targetePathA,targetePathB
```
```bash
@@ -44,11 +44,11 @@ npx poku
By using `--include` option, you can use it in any order:
```bash
-npx poku --include='targetDir'
+npx poku --include='targetePath'
```
```bash
-npx poku --include='targetDirA,targetDirB'
+npx poku --include='targetePathA,targetePathB'
```
```bash
diff --git a/website/docs/examples/beforeEach.mdx b/website/docs/examples/beforeEach.mdx
index 28f82615..f6d12ce9 100644
--- a/website/docs/examples/beforeEach.mdx
+++ b/website/docs/examples/beforeEach.mdx
@@ -122,7 +122,7 @@ assert.strictEqual(0, failuresCode, 'Running Failures Integration Tests');
**Finally**
```bash
-node ./test/run.test.js
+npx poku test/run.test.js
```
-> Or `npx tsx ./test/run.test.ts` for **TypeScript**.
+> Or `npx poku test/run.test.ts` for **TypeScript**.
diff --git a/website/docs/index.mdx b/website/docs/index.mdx
index f206a260..07f55954 100644
--- a/website/docs/index.mdx
+++ b/website/docs/index.mdx
@@ -56,13 +56,17 @@ Enjoying **Poku**? Consider giving him a star โญ๏ธ
- You don't need to learn what you already know โจ
+
+ Let's make `describe`, `beforeEach` and everything else easier ([**see why
+ and how**](/docs/examples/beforeEach)) ๐
+
- Don't worry about `describe`, `it`, `beforeEach` and everything else
- ([**see why**](/docs/examples/beforeEach)) ๐
+ **Poku** brings human-friendly testing and assertion to
+ [**Node.js**][node-version-url], [**Bun**][bun-version-url] &
+ [**Deno**][deno-version-url] at the same time โจ
@@ -125,7 +129,7 @@ import { poku } from 'https://esm.sh/poku';
```ts
import { poku } from 'poku';
- await poku(['targetDir']);
+ await poku(['targetPath']);
```
@@ -134,7 +138,7 @@ import { poku } from 'https://esm.sh/poku';
```ts
import { poku } from 'npm:poku';
-await poku(['targetDir']);
+await poku(['targetPath']);
```
@@ -146,21 +150,21 @@ await poku(['targetDir']);
```bash
-npx poku targetDir
+npx poku targetPath
```
```bash
-bun poku targetDir
+bun poku targetPath
```
```bash
-deno run npm:poku targetDir
+deno run npm:poku targetPath
```
**Poku** requires these permissions by default:
diff --git a/website/src/css/home.scss b/website/src/css/home.scss
index fb8531b5..79b9bb61 100644
--- a/website/src/css/home.scss
+++ b/website/src/css/home.scss
@@ -173,7 +173,6 @@
& > small {
width: 100%;
text-align: center;
- hyphens: auto;
text-shadow: 1px 1px 1px #13152dab;
font-family: 'Montserrat', sans-serif;
font-size: 15px;
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 837fb60c..63fe1d31 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -185,9 +185,8 @@ const Home = () => {