Skip to content

Commit

Permalink
Merge branch 'fix-karma-conf' into add-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Oct 21, 2024
2 parents de5ea03 + 4747ff8 commit d0ead5a
Show file tree
Hide file tree
Showing 16 changed files with 206 additions and 30 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* TypeScript compile options now use `composite: true`, `incremental: true` and `clean: false` settings, in `shared/rollup.config.mjs` (_decreases build duration_).
* TypeScript compile options now use `composite: true`, `incremental: true` and `clean: false` settings, in `shared/rollup.config` (_decreases build duration_).
* `@rollup/plugin-json` has now been enabled for all packages.
* `.env` file is parsed as `__ENV__`, for tests (_for root package only. File is parsed in `shared/tests/webpack.config.js`_).
* `.env` file is parsed as `__ENV__`, for tests (_for root package only. File is parsed in `shared/tests/webpack.config`_).
* Use Node `v22` in Github Actions (_CI environment_).

### Fixed
Expand All @@ -40,7 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Es-lint warning for `type: any` property in `Facade`, in `@aedart/support/facades`.
* Test suite name(s) for container related tests.
* Babel plugins not applied by webpack, for tests.
* Cannot start ChromeHeadless (_"No usable sandbox!" error shown_) - new "ChromeHeadlessNoSandbox" launcher added in `karma-development.conf.js` with `--no-sandbox` flag specified.
* Cannot start ChromeHeadless (_"No usable sandbox!" error shown_) - new "ChromeHeadlessNoSandbox" launcher added in `karma-development.conf.cjs` with `--no-sandbox` flag specified.
* Karma JS unable to run, when root package contains "type: module" property.

## [0.13.0] - 2024-09-27

Expand Down
174 changes: 172 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"sass": "^1.79.3",
"style-loader": "^4.0.0",
"tslib": "^2.7.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vuepress": "^2.0.0-rc.15",
"webpack": "^5.95.0",
Expand All @@ -96,9 +97,9 @@
"cache:clear": "npx nx reset",
"watch": "lerna run watch",
"lint": "eslint .",
"test": "lerna run compile && sh clean.sh && karma start shared/tests/karma-development.conf.js",
"test:fast": "karma start shared/tests/karma-development.conf.js",
"test:prod": "lerna run compile && sh clean.sh && karma start shared/tests/karma-production.conf.js",
"test": "lerna run compile && sh clean.sh && karma start shared/tests/karma-development.conf.cjs",
"test:fast": "karma start shared/tests/karma-development.conf.cjs",
"test:prod": "lerna run compile && sh clean.sh && karma start shared/tests/karma-production.conf.cjs",
"test:cli": "node --test \"tests/cli/**/*.test.js\" \"tests/cli/**/**/*.test.js\"",
"docs:dev": "cross-env NODE_ENV=development vuepress dev docs --config docs/.vuepress/config.ts",
"docs:build": "cross-env NODE_ENV=development vuepress build docs --config docs/.vuepress/config.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const webpackConfiguration = require('./webpack.config');
// const webpackConfiguration = require('./webpack.config');

/*****************************************************************
* High level setup...
Expand All @@ -14,7 +14,9 @@ const TESTS_PATH_PATTERN = 'tests/browser/packages/**/*.test.js';
* Karma (Base) Configuration
****************************************************************/

module.exports = function (config) {
module.exports = async (config) => {
const webpackConfiguration = (await import('./webpack.config.cjs')).default;

return {

// base path that will be used to resolve all patterns (eg. files, exclude)
Expand All @@ -36,7 +38,7 @@ module.exports = function (config) {

// !!! use watched: false as we use webpacks watch
watched: false
},
}
],


Expand Down
Loading

0 comments on commit d0ead5a

Please sign in to comment.