Skip to content

Commit

Permalink
chore(test): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupennat committed Sep 27, 2024
1 parent d310d87 commit 85e5cfa
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 25 deletions.
44 changes: 42 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"jest.virtualFolders": [
{
"name": "coverage",
"jestCommandLine": "npm run test:coverage --",
"jestCommandLine": "DB=mysql90 npm run test:coverage --",
"runMode": {
"type": "on-demand",
"coverage": true
Expand All @@ -113,7 +113,47 @@
},
{
"name": "integration mysql 5.7",
"jestCommandLine": "npm run test:integration:mysql57 --",
"jestCommandLine": "DB=mysql57 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mysql 8.0",
"jestCommandLine": "DB=mysql80 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mysql 8.4",
"jestCommandLine": "DB=mysql84 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mysql 9.0",
"jestCommandLine": "DB=mysql90 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mariadb 10.04",
"jestCommandLine": "DB=mariadb1004 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mariadb 10.05",
"jestCommandLine": "DB=mariadb1005 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mariadb 10.06",
"jestCommandLine": "DB=mariadb1006 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mariadb 10.11",
"jestCommandLine": "DB=mariadb1011 npm run test:integration --",
"runMode": "on-demand"
},
{
"name": "integration mariadb 11.04",
"jestCommandLine": "DB=mariadb1104 npm run test:integration --",
"runMode": "on-demand"
},
]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ jobs:
- name: Build and test
run: |
npm run test:integration:${{ matrix.database-type }}
npm run test:integration
env:
CI: true
DB: ${{ matrix.database-type }}

- name: Stop Database(s)
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: npm run test:coverage
env:
CI: true
DB: mysql90

- name: Code Coverage Report
uses: irongut/[email protected]
Expand Down
30 changes: 18 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,76 @@ All notable changes to this project from 1.0.0 forward will be documented in thi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2024-09-27

### Changed

- Update to Lupdo ^4.0.0

## [1.5.0] - 2023-12-24

### Changed

- Update to Lupdo ^3.4.0
- Support multiple rowset
- Update to Lupdo ^3.4.0
- Support multiple rowset

## [1.4.0] - 2023-03-22

### Changed

- Update to Lupdo ^3.3.0
- Update to Lupdo ^3.3.0

## [1.3.1] - 2023-03-19

### Changed

- Mysql statement `prepare` do not real prepare statement on mysql, prepare does not emit error anymore. Error will be raised only on execution.
- Mysql statement `prepare` do not real prepare statement on mysql, prepare does not emit error anymore. Error will be raised only on execution.

## [1.3.0] - 2023-02-03

### Changed

- The `host` option now also accepts a list of `host:port`; the pool will generate the connection using a random host from the list.
- The `host` option now also accepts a list of `host:port`; the pool will generate the connection using a random host from the list.

## [1.2.1] - 2023-01-20

### Added

- `createMysqlPdo` function exported to better typing mysqlOptions
- `createMysqlPdo` function exported to better typing mysqlOptions

## [1.2.0] - 2023-01-10

### Changed

- Update to Lupdo ^3.0.0
- Update to Lupdo ^3.0.0

## [1.1.0] - 2023-01-08

### Fixed

- Type Casting
- Type Casting

### Changed

- Updated to Lupdo v2.1.0.
- Updated to Lupdo v2.1.0.

## [1.0.3] - 2022-12-29

### Fixed

- Kill connection also `removeAllListeners()`
- Kill connection also `removeAllListeners()`

## [1.0.2] - 2022-12-28

### Changed

- Update to Lupdo ^2.0.0
- Update to Lupdo ^2.0.0

## [1.0.1] - 2022-12-28

### Added

- support for mysql57
- support for mysql57

## [1.0.0] - 2022-12-27

Expand Down
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,9 @@
"lint:fix": "eslint \"{src,test}/**/*.ts\" --fix",
"prepublishOnly": "safe-publish-latest && npm run build",
"prepublish": "not-in-publish || npm run prepublishOnly",
"test:coverage": "DB=mysql90 jest --passWithNoTests --selectProjects unit integration --coverage --runInBand",
"test:coverage": "jest --passWithNoTests --selectProjects unit integration --coverage --runInBand",
"test:unit": "jest --passWithNoTests --selectProjects unit --runInBand",
"test:integration:mysql57": "DB=mysql57 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mysql80": "DB=mysql80 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mysql84": "DB=mysql84 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mysql90": "DB=mysql90 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mariadb1004": "DB=mariadb1004 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mariadb1005": "DB=mariadb1005 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mariadb1006": "DB=mariadb1006 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mariadb1011": "DB=mariadb1011 jest --passWithNoTests --selectProjects integration --runInBand",
"test:integration:mariadb1104": "DB=mariadb1104 jest --passWithNoTests --selectProjects integration --runInBand"
"test:integration": "jest --passWithNoTests --selectProjects integration --runInBand"
},
"engines": {
"node": ">=18.0.0"
Expand Down

0 comments on commit 85e5cfa

Please sign in to comment.