This repository contains end-to-end tests for the console-table-printer and simple-wcswidth packages.
- console-table-printer: Tests for basic and advanced table functionality
- simple-wcswidth: Tests for character width calculation with various character sets
- Types: Tests for proper exports and type definitions
- TypeScript Import Tests: Verify that both packages can be properly imported in TypeScript
- Type Checking: Ensure that exported types are correctly defined and usable
# Install dependencies
yarn
# Run all tests
yarn test
tests/
├── console-table-printer/ # Tests for console-table-printer
│ ├── basic.test.js # JavaScript basic tests
│ ├── advanced.test.js # JavaScript advanced tests
│ ├── types.test.js # JavaScript type exports tests
│ ├── basic.test.ts # TypeScript basic tests
│ ├── advanced.test.ts # TypeScript advanced tests
│ └── types.test.ts # TypeScript type definitions tests
└── simple-wcswidth/ # Tests for simple-wcswidth
├── basic.test.js # JavaScript basic tests
├── advanced.test.js # JavaScript advanced tests
├── types.test.js # JavaScript type exports tests
├── basic.test.ts # TypeScript basic tests
├── advanced.test.ts # TypeScript advanced tests
└── types.test.ts # TypeScript type definitions tests
This repository uses GitHub Actions to run tests automatically:
- Tests run daily via the daily-tests workflow
- Tests run on multiple Node.js versions:
- Node.js 12.x (via node12-tests workflow)
- Node.js 14.x (via node14-tests workflow)
- Node.js 16.x (via node16-tests workflow)
- Dependencies are automatically updated via the update-dependencies workflow
- The test suite is compatible with Node.js versions 12, 14, and 16
- For newer Node.js versions (18+), all tests should run without issues
- Note: Some testing tools may have specific Node.js version requirements
If you'd like to contribute to these tests, please submit a pull request with your changes.
ISC