Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,6 @@ jobs:

- name: Test CC Widgets
run: yarn run test:cc-widgets

- name: Test Meetings Widget
run: yarn run test:meetings-widget
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@
"scripts": {
"clean": "yarn workspaces foreach --all --topological --parallel run clean && rm -rf node_modules",
"clean:dist": "yarn workspaces foreach --all --topological --parallel run clean:dist",
"test:unit": "yarn run test:tooling && yarn run test:cc-widgets",
"test:unit": "yarn run test:tooling && yarn run test:cc-widgets && yarn run test:meetings-widget",
"test:e2e": "yarn playwright test",
"test:styles": "yarn workspaces foreach --all --exclude webex-widgets run test:styles",
"test:tooling": "jest --coverage",
"test:cc-widgets": "yarn workspaces foreach --all --exclude webex-widgets --exclude samples-cc-wc-app --exclude samples-cc-react-app run test:unit",
"test:meetings-widget": "yarn workspaces foreach --all --verbose --include @webex/widgets run test:unit",
"build:dev": "NODE_ENV=development yarn build",
"build:prod": "NODE_ENV=production yarn build:serial",
"build": "NODE_OPTIONS=--max-old-space-size=4096 yarn workspaces foreach --all --parallel --topological --exclude samples-cc-react-app --exclude samples-cc-wc-app --exclude samples-meeting-app run build:src",
Expand Down
14 changes: 14 additions & 0 deletions packages/@webex/widgets/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const jestConfig = require('../../../jest.config.js');

jestConfig.rootDir = '../../../';
jestConfig.testMatch = ['**/@webex/widgets/tests/**/*.test.{js,jsx}'];
jestConfig.globals = {
...jestConfig.globals,
__appVersion__: '1.0.0-test',
};
jestConfig.coveragePathIgnorePatterns = [
...(jestConfig.coveragePathIgnorePatterns || []),
'WebexLogo\\.jsx$',
];

module.exports = jestConfig;
4 changes: 4 additions & 0 deletions packages/@webex/widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"release:debug": "semantic-release --debug",
"release:dry-run": "semantic-release --dry-run",
"start": "npm run demo:serve",
"test:unit": "jest --config jest.config.js --coverage",
"test:e2e": "npm run demo:build && wdio wdio.conf.js",
"test:eslint": "echo 'Broken eslint tests'",
"test:eslint:broken": "eslint src/"
Expand Down Expand Up @@ -57,6 +58,9 @@
"@momentum-ui/react": "^23.21.4",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.2",
"@testing-library/react": "16.0.1",
"@wdio/cli": "^7.3.1",
"@wdio/jasmine-framework": "^7.4.6",
"@wdio/junit-reporter": "^7.4.2",
Expand Down
Loading
Loading