Skip to content

Commit ca6c15a

Browse files
committed
test message
1 parent ccaf619 commit ca6c15a

1 file changed

Lines changed: 37 additions & 32 deletions

File tree

README.md

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,68 @@ This repository contains end-to-end tests for the [console-table-printer](https:
77

88
## Test Types
99

10-
### Unit Tests (Jest)
10+
### JavaScript Tests (Jest)
1111

1212
- **console-table-printer**: Tests for basic and advanced table functionality
1313
- **simple-wcswidth**: Tests for character width calculation with various character sets
14-
- **Integration**: Tests that combine both libraries to ensure they work well together
14+
- **Types**: Tests for proper exports and type definitions
1515

1616
### TypeScript Tests
1717

1818
- **TypeScript Import Tests**: Verify that both packages can be properly imported in TypeScript
1919
- **Type Checking**: Ensure that exported types are correctly defined and usable
20-
- **TypeScript Integration**: Test both libraries working together in a TypeScript environment
2120

2221
## Running Tests
2322

2423
```bash
2524
# Install dependencies
2625
yarn
2726

28-
# Run unit tests
27+
# Run all tests
2928
yarn test
3029
```
3130

3231
## Test Structure
3332

3433
```
3534
tests/
36-
├── console-table-printer/ # JavaScript unit tests for console-table-printer
37-
│ ├── basic.test.js
38-
│ └── advanced.test.js
39-
├── simple-wcswidth/ # JavaScript unit tests for simple-wcswidth
40-
│ ├── basic.test.js
41-
│ └── advanced.test.js
42-
├── integration/ # JavaScript integration tests
43-
│ └── combined.test.js
44-
└── typescript/ # TypeScript tests
45-
├── console-table-printer/
46-
│ ├── basic.test.ts
47-
│ └── advanced.test.ts
48-
├── simple-wcswidth/
49-
│ ├── basic.test.ts
50-
│ └── advanced.test.ts
51-
└── integration/
52-
└── combined.test.ts
35+
├── console-table-printer/ # Tests for console-table-printer
36+
│ ├── basic.test.js # JavaScript basic tests
37+
│ ├── advanced.test.js # JavaScript advanced tests
38+
│ ├── types.test.js # JavaScript type exports tests
39+
│ ├── basic.test.ts # TypeScript basic tests
40+
│ ├── advanced.test.ts # TypeScript advanced tests
41+
│ └── types.test.ts # TypeScript type definitions tests
42+
└── simple-wcswidth/ # Tests for simple-wcswidth
43+
├── basic.test.js # JavaScript basic tests
44+
├── advanced.test.js # JavaScript advanced tests
45+
├── types.test.js # JavaScript type exports tests
46+
├── basic.test.ts # TypeScript basic tests
47+
├── advanced.test.ts # TypeScript advanced tests
48+
└── types.test.ts # TypeScript type definitions tests
5349
```
5450

5551
## Automated Testing
5652

5753
This repository uses GitHub Actions to run tests automatically:
5854

59-
- Tests run daily at midnight UTC to ensure continuous compatibility
60-
- Tests run on every push to the main branch
61-
- Unit tests run on multiple Node.js versions:
62-
- Node.js 12.x (using Jest 27.x for compatibility)
63-
- Node.js 14.x (using Jest 29.x for compatibility)
64-
- Node.js 16.x (using Jest 29.x for compatibility)
65-
- Node.js 18.x, 20.x, 22.x, 24.x (using Jest 30.x)
66-
- E2E tests run separately using Playwright
67-
- Manual test runs can be triggered from the Actions tab in GitHub
68-
69-
Test results and artifacts are stored for 7 days and can be downloaded from the GitHub Actions workflow runs.
55+
- Tests run daily via the daily-tests workflow
56+
- Tests run on multiple Node.js versions:
57+
- Node.js 12.x (via node12-tests workflow)
58+
- Node.js 14.x (via node14-tests workflow)
59+
- Node.js 16.x (via node16-tests workflow)
60+
- Dependencies are automatically updated via the update-dependencies workflow
61+
62+
### Node.js Compatibility
63+
64+
- The test suite is compatible with Node.js versions 12, 14, and 16
65+
- For newer Node.js versions (18+), all tests should run without issues
66+
- Note: Some testing tools may have specific Node.js version requirements
67+
68+
## Contributing
69+
70+
If you'd like to contribute to these tests, please submit a pull request with your changes.
71+
72+
## License
73+
74+
ISC

0 commit comments

Comments
 (0)