Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/wrapper_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,13 @@ jobs:
- name: Download Browser
if: matrix.framework == 'angular'
run: |
PUPPETEER_CMD="browsers install chrome@130.0.6723.69"
pnpm --filter devextreme-angular exec puppeteer $PUPPETEER_CMD
CHROME_VERSION="149.0.7827.22"
CHROME_DIR="$HOME/.cache/puppeteer/chrome/linux-$CHROME_VERSION"
if [ -d "$CHROME_DIR" ] && [ ! -x "$CHROME_DIR/chrome-linux64/chrome" ]; then
echo "Removing corrupted puppeteer cache: $CHROME_DIR"
rm -rf "$CHROME_DIR"
fi
pnpm --filter devextreme-angular exec puppeteer browsers install "chrome@$CHROME_VERSION"
- name: Test ${{ matrix.framework }}
env:
Expand Down
7 changes: 4 additions & 3 deletions packages/devextreme-angular/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* global process */
process.env.CHROME_BIN = require('puppeteer').executablePath();

const path = require('path');

const webpackConfig = require(path.resolve(__dirname, './webpack.test'));

module.exports = function (config) {
module.exports = async function (config) {
// puppeteer >= 24: executablePath() is async
process.env.CHROME_BIN = await require('puppeteer').executablePath();

config.set({

basePath: './',
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"karma-junit-reporter": "2.0.1",
"karma-webpack": "5.0.1",
"ng-packagr": "catalog:angular",
"puppeteer": "23.6.1",
"puppeteer": "25.1.0",
"rxjs": "7.8.2",
"reflect-metadata": "0.1.13",
"stream-browserify": "3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ async function loadKarmaConfig(
try {
const karma = loadKarmaModule();
const absoluteConfigPath = path.join(projectRoot, karmaConfigPath);
const resultConfig = await karma.config.parseConfig(absoluteConfigPath, config ?? {});
const resultConfig = await karma.config.parseConfig(absoluteConfigPath, config ?? {}, {
promiseConfig: true,
throwErrors: true,
});

return resultConfig;
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface KarmaModule {
parseConfig(
configPath: string | null,
cliOptions: Record<string, unknown>,
parseOptions?: { promiseConfig?: boolean; throwErrors?: boolean },
): Promise<KarmaConfigOptions>;
};
}
Expand Down
Loading
Loading