diff --git a/package-lock.json b/package-lock.json index 12b40fba0..0e4cc2e27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -276,9 +276,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", - "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", + "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", "license": "MIT", "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", @@ -6587,13 +6587,13 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", - "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", + "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", "license": "MIT", "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", + "@babel/helper-define-polyfill-provider": "^0.6.3", "semver": "^6.3.1" }, "peerDependencies": { @@ -9639,9 +9639,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.55", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.55.tgz", - "integrity": "sha512-6maZ2ASDOTBtjt9FhqYPRnbvKU5tjG0IN9SztUOWYw2AzNDNpKJYLJmlK0/En4Hs/aiWnB+JZ+gW19PIGszgKg==", + "version": "1.5.58", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.58.tgz", + "integrity": "sha512-al2l4r+24ZFL7WzyPTlyD0fC33LLzvxqLCwurtBibVPghRGO9hSTl+tis8t1kD7biPiH/en4U0I7o/nQbYeoVA==", "license": "ISC" }, "node_modules/element-polyfill": { @@ -9830,9 +9830,9 @@ } }, "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", + "version": "1.23.4", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.4.tgz", + "integrity": "sha512-HR1gxH5OaiN7XH7uiWH0RLw0RcFySiSoW1ctxmD1ahTw3uGBtkmm/ng0tDU1OtYx5OK6EOL5Y6O21cDflG3Jcg==", "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", @@ -9850,7 +9850,7 @@ "function.prototype.name": "^1.1.6", "get-intrinsic": "^1.2.4", "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", + "globalthis": "^1.0.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2", "has-proto": "^1.0.3", @@ -9866,10 +9866,10 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.13", "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", + "object-inspect": "^1.13.3", "object-keys": "^1.1.1", "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", + "regexp.prototype.flags": "^1.5.3", "safe-array-concat": "^1.1.2", "safe-regex-test": "^1.0.3", "string.prototype.trim": "^1.2.9", @@ -19632,13 +19632,13 @@ } }, "node_modules/postcss-modules-local-by-default": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.5.tgz", - "integrity": "sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.1.0.tgz", + "integrity": "sha512-rm0bdSv4jC3BDma3s9H19ZddW0aHX6EoqwDYU2IfZhRN+53QrufTRo2IdkAbRqLx4R2IYbZnbjKKxg4VN5oU9Q==", "license": "MIT", "dependencies": { "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", + "postcss-selector-parser": "^7.0.0", "postcss-value-parser": "^4.1.0" }, "engines": { @@ -19648,13 +19648,26 @@ "postcss": "^8.1.0" } }, + "node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", + "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/postcss-modules-scope": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz", - "integrity": "sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz", + "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==", "license": "ISC", "dependencies": { - "postcss-selector-parser": "^6.0.4" + "postcss-selector-parser": "^7.0.0" }, "engines": { "node": "^10 || ^12 || >= 14" @@ -19663,6 +19676,19 @@ "postcss": "^8.1.0" } }, + "node_modules/postcss-modules-scope/node_modules/postcss-selector-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz", + "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/postcss-modules-values": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", @@ -25658,7 +25684,7 @@ }, "packages/sui-bundler": { "name": "@s-ui/bundler", - "version": "9.69.0", + "version": "9.70.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -25784,7 +25810,7 @@ }, "packages/sui-critical-css": { "name": "@s-ui/critical-css", - "version": "1.28.0", + "version": "1.29.0", "license": "ISC", "dependencies": { "@s-ui/critical-css-middleware": "1", @@ -25796,7 +25822,7 @@ }, "packages/sui-critical-css-middleware": { "name": "@s-ui/critical-css-middleware", - "version": "1.1.0", + "version": "1.2.0", "dependencies": { "path-to-regexp": "0.1.10" } @@ -26079,7 +26105,7 @@ }, "packages/sui-js": { "name": "@s-ui/js", - "version": "2.35.0", + "version": "2.36.0", "license": "MIT", "dependencies": { "bowser": "2.11.0", @@ -26654,7 +26680,7 @@ }, "packages/sui-pde": { "name": "@s-ui/pde", - "version": "2.30.0", + "version": "2.31.0", "license": "MIT", "dependencies": { "@optimizely/optimizely-sdk": "5.3.4", @@ -26886,7 +26912,7 @@ }, "packages/sui-sass-loader": { "name": "@s-ui/sass-loader", - "version": "1.7.0", + "version": "1.8.0", "dependencies": { "cli-source-preview": "1.1.0", "co": "4.6.0", @@ -26976,7 +27002,7 @@ }, "packages/sui-studio": { "name": "@s-ui/studio", - "version": "11.46.0", + "version": "11.47.0", "license": "MIT", "dependencies": { "@babel/cli": "7", @@ -27064,7 +27090,7 @@ }, "packages/sui-svg": { "name": "@s-ui/svg", - "version": "3.25.0", + "version": "3.26.0", "license": "MIT", "dependencies": { "@s-ui/react-atom-icon": "1", @@ -27086,7 +27112,7 @@ }, "packages/sui-test": { "name": "@s-ui/test", - "version": "8.39.0", + "version": "8.40.0", "license": "MIT", "dependencies": { "@babel/core": "7.18.10", @@ -27143,7 +27169,7 @@ }, "packages/sui-test-e2e": { "name": "@s-ui/test-e2e", - "version": "1.15.0", + "version": "1.16.0", "license": "MIT", "dependencies": { "@testing-library/cypress": "8.0.3", diff --git a/packages/sui-studio/bin/sui-studio-test.js b/packages/sui-studio/bin/sui-studio-test.js index b810bbfa8..57cf36940 100755 --- a/packages/sui-studio/bin/sui-studio-test.js +++ b/packages/sui-studio/bin/sui-studio-test.js @@ -13,6 +13,7 @@ program .option('-W, --watch', 'Watch mode') .option('-T, --timeout ', 'Timeout') .option('--coverage', 'Create coverage', false) + .option('--no-coverage-inline', 'Save the coverage summary in a text file', false) .on('--help', () => { console.log(' Examples:') console.log('') @@ -23,7 +24,7 @@ program }) .parse(process.argv) -const {coverage, watch, ci, headless, timeout} = program.opts() +const {coverage, coverageInline, watch, ci, headless, timeout} = program.opts() const relPath = path.relative( process.cwd(), @@ -39,6 +40,7 @@ const run = async () => { '--pattern', path.join(relPath, 'node_modules', '@s-ui', 'studio', 'src', 'runtime-mocha', 'index.js'), coverage && '--coverage', + !coverageInline && '--no-coverage-inline', watch && '--watch', ci && '--ci', headless && '--headless', diff --git a/packages/sui-test/bin/karma/index.js b/packages/sui-test/bin/karma/index.js index 7337e681e..27b80da40 100644 --- a/packages/sui-test/bin/karma/index.js +++ b/packages/sui-test/bin/karma/index.js @@ -6,7 +6,17 @@ const { const config = require('./config.js') const CWD = process.cwd() -module.exports = async ({ci, coverage, headless, ignorePattern, pattern, srcPattern, timeout, watch}) => { +module.exports = async ({ + ci, + coverage, + coverageInline, + headless, + ignorePattern, + pattern, + srcPattern, + timeout, + watch +}) => { if (timeout) config.browserDisconnectTimeout = timeout if (ignorePattern) config.exclude = [ignorePattern] @@ -38,7 +48,13 @@ module.exports = async ({ci, coverage, headless, ignorePattern, pattern, srcPatt {type: 'cobertura', subdir: '.', file: 'coverage.xml'}, {type: 'html', subdir: 'report-html'}, {type: 'json-summary', subdir: '.', file: 'coverage.json'}, - {type: 'text-summary'} + { + type: 'text-summary', + ...(!coverageInline && { + subdir: '.', + file: 'coverage.txt' + }) + } ] } } diff --git a/packages/sui-test/bin/sui-test-browser.js b/packages/sui-test/bin/sui-test-browser.js index af1b6b733..28ad5481a 100755 --- a/packages/sui-test/bin/sui-test-browser.js +++ b/packages/sui-test/bin/sui-test-browser.js @@ -14,6 +14,7 @@ program .option('--src-pattern ', 'Define the source directory', false) .option('-T, --timeout ', 'Timeout', 2000) .option('--coverage', 'Run the coverage preprocessor', false) + .option('--no-coverage-inline', 'Save the coverage summary in a text file', false) .on('--help', () => { console.log(' Description:') console.log('') @@ -22,15 +23,19 @@ program console.log(' Examples:') console.log('') console.log(' $ sui-test browser') + console.log(' $ sui-test browser --headless') + console.log(' $ sui-test browser --coverage') + console.log(' $ sui-test browser --coverage --no-coverage-inline') console.log('') }) .parse(process.argv) -const {ci, coverage, headless, ignorePattern, pattern, srcPattern, timeout, watch} = program.opts() +const {ci, coverage, coverageInline, headless, ignorePattern, pattern, srcPattern, timeout, watch} = program.opts() runner({ ci, coverage, + coverageInline, headless, ignorePattern, pattern,