Skip to content

Commit aba46b1

Browse files
committed
test message
1 parent aebc584 commit aba46b1

6 files changed

Lines changed: 40 additions & 23 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# - Documentation page tests
1212
#
1313
# The workflow runs:
14-
# - Hourly (via cron)
14+
# - Daily at 00:00 UTC
1515
# - On push to main branch
1616
# - Manually via workflow_dispatch
1717
#
@@ -22,8 +22,8 @@ name: E2E Website Tests
2222

2323
on:
2424
schedule:
25-
# Run every hour
26-
- cron: '0 * * * *'
25+
# Run once a day at midnight UTC
26+
- cron: '0 0 * * *'
2727
# Also run on push to main branch
2828
push:
2929
branches: [ main ]

.github/workflows/hourly-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# - Tests run on all supported Node.js versions
1212
#
1313
# The workflow runs:
14-
# - Hourly (via cron)
14+
# - Daily at 00:00 UTC
1515
# - On push to main branch
1616
# - Manually via workflow_dispatch
1717
#
@@ -21,8 +21,8 @@ name: Unit Tests
2121

2222
on:
2323
schedule:
24-
# Run every hour
25-
- cron: '0 * * * *'
24+
# Run once a day at midnight UTC
25+
- cron: '0 0 * * *'
2626
# Also run on push to main branch
2727
push:
2828
branches: [ main ]

.github/workflows/node12-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# even though the latest testing tools may not support this version.
1515
#
1616
# The workflow runs:
17-
# - Hourly (via cron)
17+
# - Daily at 00:00 UTC
1818
# - On push to main branch
1919
# - Manually via workflow_dispatch
2020
#
@@ -25,8 +25,8 @@ name: Node.js 12 Tests
2525

2626
on:
2727
schedule:
28-
# Run every hour
29-
- cron: '0 * * * *'
28+
# Run once a day at midnight UTC
29+
- cron: '0 0 * * *'
3030
# Also run on push to main branch
3131
push:
3232
branches: [ main ]

.github/workflows/node14-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# even though the latest testing tools may not support this version.
1515
#
1616
# The workflow runs:
17-
# - Hourly (via cron)
17+
# - Daily at 00:00 UTC
1818
# - On push to main branch
1919
# - Manually via workflow_dispatch
2020
#
@@ -25,8 +25,8 @@ name: Node.js 14 Tests
2525

2626
on:
2727
schedule:
28-
# Run every hour
29-
- cron: '0 * * * *'
28+
# Run once a day at midnight UTC
29+
- cron: '0 0 * * *'
3030
# Also run on push to main branch
3131
push:
3232
branches: [ main ]

.github/workflows/node16-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# even though the latest testing tools may not support this version.
1515
#
1616
# The workflow runs:
17-
# - Hourly (via cron)
17+
# - Daily at 00:00 UTC
1818
# - On push to main branch
1919
# - Manually via workflow_dispatch
2020
#
@@ -25,8 +25,8 @@ name: Node.js 16 Tests
2525

2626
on:
2727
schedule:
28-
# Run every hour
29-
- cron: '0 * * * *'
28+
# Run once a day at midnight UTC
29+
- cron: '0 0 * * *'
3030
# Also run on push to main branch
3131
push:
3232
branches: [ main ]

README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# E2E Tests for console-table-printer and simple-wcswidth
22

3-
![Hourly Tests](https://github.com/console-table-printer/e2e/workflows/Hourly%20Tests/badge.svg)
3+
![Unit Tests](https://github.com/console-table-printer/e2e/workflows/Unit%20Tests/badge.svg)
44
![Node.js 16 Tests](https://github.com/console-table-printer/e2e/workflows/Node.js%2016%20Tests/badge.svg)
55

66
This repository contains end-to-end tests for the [console-table-printer](https://github.com/ayonious/console-table-printer) and [simple-wcswidth](https://github.com/ayonious/simple-wcswidth) packages.
@@ -13,6 +13,12 @@ This repository contains end-to-end tests for the [console-table-printer](https:
1313
- **simple-wcswidth**: Tests for character width calculation with various character sets
1414
- **Integration**: Tests that combine both libraries to ensure they work well together
1515

16+
### TypeScript Tests
17+
18+
- **TypeScript Import Tests**: Verify that both packages can be properly imported in TypeScript
19+
- **Type Checking**: Ensure that exported types are correctly defined and usable
20+
- **TypeScript Integration**: Test both libraries working together in a TypeScript environment
21+
1622
### Website Tests (Playwright)
1723

1824
- Tests for the [console-table-printer website](https://console-table.netlify.app/)
@@ -24,8 +30,8 @@ This repository contains end-to-end tests for the [console-table-printer](https:
2430
# Install dependencies
2531
yarn
2632

27-
# Run unit tests
28-
yarn test:unit
33+
# Run JavaScript and TypeScript unit tests
34+
yarn test
2935

3036
# Run website E2E tests
3137
yarn test:e2e
@@ -38,14 +44,23 @@ yarn test:all
3844

3945
```
4046
tests/
41-
├── console-table-printer/ # Unit tests for console-table-printer
47+
├── console-table-printer/ # JavaScript unit tests for console-table-printer
4248
│ ├── basic.test.js
4349
│ └── advanced.test.js
44-
├── simple-wcswidth/ # Unit tests for simple-wcswidth
50+
├── simple-wcswidth/ # JavaScript unit tests for simple-wcswidth
4551
│ ├── basic.test.js
4652
│ └── advanced.test.js
47-
├── integration/ # Integration tests combining both libraries
53+
├── integration/ # JavaScript integration tests
4854
│ └── combined.test.js
55+
├── typescript/ # TypeScript tests
56+
│ ├── console-table-printer/
57+
│ │ ├── basic.test.ts
58+
│ │ └── advanced.test.ts
59+
│ ├── simple-wcswidth/
60+
│ │ ├── basic.test.ts
61+
│ │ └── advanced.test.ts
62+
│ └── integration/
63+
│ └── combined.test.ts
4964
└── website/ # Website E2E tests with Playwright
5065
├── homepage.test.js
5166
└── docs.test.js
@@ -55,12 +70,14 @@ tests/
5570

5671
This repository uses GitHub Actions to run tests automatically:
5772

58-
- Tests run hourly to ensure continuous compatibility
73+
- Tests run daily at midnight UTC to ensure continuous compatibility
5974
- Tests run on every push to the main branch
6075
- Unit tests run on multiple Node.js versions:
76+
- Node.js 12.x (using Jest 27.x for compatibility)
77+
- Node.js 14.x (using Jest 29.x for compatibility)
6178
- Node.js 16.x (using Jest 29.x for compatibility)
6279
- Node.js 18.x, 20.x, 22.x, 24.x (using Jest 30.x)
63-
- E2E tests run after unit tests pass
80+
- E2E tests run separately using Playwright
6481
- Manual test runs can be triggered from the Actions tab in GitHub
6582

6683
Test results and artifacts are stored for 7 days and can be downloaded from the GitHub Actions workflow runs.

0 commit comments

Comments
 (0)