-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into issues-433-and-452
- Loading branch information
Showing
27 changed files
with
472 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Outputs | ||
/dist | ||
dist | ||
|
||
# Logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* While in local development, make sure you've run `pnpm run build` first. | ||
*/ | ||
import { concurrently } from './dist/src/index.js'; | ||
|
||
export * from './dist/src/index.js'; | ||
export default concurrently; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* While in local development, make sure you've run `pnpm run build` first. | ||
*/ | ||
import { concurrently } from './dist/src/index.js'; | ||
|
||
export * from './dist/src/index.js'; | ||
// @ts-expect-error ignore the usage of `export =` along with `export default`. | ||
// This is seemingly fine, but the file needs to be included in the TS project, which can't be done | ||
// due to importing from `dist`. See https://stackoverflow.com/q/42609768/2083599 | ||
export = concurrently; | ||
export default concurrently; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
const config = { | ||
// Need to extend from a base config because projects don't inherit configurations as documented | ||
// https://github.com/jestjs/jest/issues/11411 | ||
/** @type {import('@jest/types').Config.InitialProjectOptions} */ | ||
const baseConfig = { | ||
transform: { | ||
'^.+\\.(t|j)sx?$': ['@swc/jest'], | ||
'.*': ['@swc/jest'], | ||
}, | ||
collectCoverage: true, | ||
collectCoverageFrom: ['src/**/*.ts', '!src/index.ts'], | ||
testPathIgnorePatterns: ['/node_modules/', '/dist'], | ||
}; | ||
|
||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
const config = { | ||
collectCoverage: true, | ||
projects: [ | ||
{ | ||
...baseConfig, | ||
displayName: 'unit', | ||
collectCoverageFrom: ['src/**/*.ts', '!src/index.ts'], | ||
// (src|bin) doesn't seem to work on Windows | ||
testMatch: ['src', 'bin'].map((dir) => `<rootDir>/${dir}/**/*.spec.ts`), | ||
}, | ||
{ | ||
...baseConfig, | ||
displayName: 'smoke', | ||
testMatch: ['<rootDir>/tests/**/*.spec.ts'], | ||
}, | ||
], | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.