From c23d94eba82aeaab310468414d7999b76c24e54c Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Tue, 25 Oct 2022 14:31:21 +0300 Subject: [PATCH 1/2] test(jest): Drop jest-css-modules --- .i18n.babel.config.js | 1 + babel.config.js | 2 +- jest-addon.config.js | 5 ++--- package.json | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .i18n.babel.config.js diff --git a/.i18n.babel.config.js b/.i18n.babel.config.js new file mode 100644 index 0000000..a900a75 --- /dev/null +++ b/.i18n.babel.config.js @@ -0,0 +1 @@ +module.exports = require('@plone/volto/babel'); diff --git a/babel.config.js b/babel.config.js index 2f4e1e8..51bd52b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,6 @@ module.exports = function (api) { api.cache(true); - const presets = ['razzle/babel']; + const presets = ['razzle']; const plugins = [ [ 'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work diff --git a/jest-addon.config.js b/jest-addon.config.js index 6135d92..da38318 100644 --- a/jest-addon.config.js +++ b/jest-addon.config.js @@ -9,6 +9,7 @@ module.exports = { '@plone/volto/babel': '/node_modules/@plone/volto/babel', '@plone/volto/(.*)$': '/node_modules/@plone/volto/src/$1', '@package/(.*)$': '/src/$1', + '@root/(.*)$': '/src/$1', '@plone/volto-quanta/(.*)$': '/src/addons/volto-quanta/src/$1', '@eeacms/(.*?)/(.*)$': '/src/addons/$1/src/$2', '@plone/volto-slate': @@ -16,12 +17,10 @@ module.exports = { '~/(.*)$': '/src/$1', 'load-volto-addons': '/node_modules/@plone/volto/jest-addons-loader.js', + '\\.(css|less|scss|sass)$': 'identity-obj-proxy', }, transform: { '^.+\\.js(x)?$': 'babel-jest', - '^.+\\.css$': 'jest-css-modules', - '^.+\\.less$': 'jest-css-modules', - '^.+\\.scss$': 'jest-css-modules', '^.+\\.(png)$': 'jest-file', '^.+\\.(jpg)$': 'jest-file', '^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js', diff --git a/package.json b/package.json index 5d3c0a3..ede961f 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "dependencies": {}, "devDependencies": { "@plone/scripts": "*", - "jest-css-modules": "^2.1.0", "@cypress/code-coverage": "^3.10.0", "babel-plugin-transform-class-properties": "^6.24.1", "md5": "^2.3.0" From 1cc8fdb769219c35fe2a6b824874ceb3117dab21 Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:42:14 +0000 Subject: [PATCH 2/2] Automated release 0.4.3 --- CHANGELOG.md | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71c3ee1..7561429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -### [0.4.2](https://github.com/eea/volto-slate-label/compare/0.4.1...0.4.2) - 24 October 2022 +### [0.4.3](https://github.com/eea/volto-slate-label/compare/0.4.2...0.4.3) - 25 October 2022 -#### :house: Documentation changes +#### :hammer_and_wrench: Others -- docs(howto): Cleanup broken docker examples [Alin Voinea - [`c767927`](https://github.com/eea/volto-slate-label/commit/c767927f8c866a4985453f6f2e09626fca285674)] +- test(jest): Drop jest-css-modules [Alin Voinea - [`c23d94e`](https://github.com/eea/volto-slate-label/commit/c23d94eba82aeaab310468414d7999b76c24e54c)] +### [0.4.2](https://github.com/eea/volto-slate-label/compare/0.4.1...0.4.2) - 24 October 2022 ### [0.4.1](https://github.com/eea/volto-slate-label/compare/0.4.0...0.4.1) - 24 October 2022 diff --git a/package.json b/package.json index ede961f..99c40bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-slate-label", - "version": "0.4.2", + "version": "0.4.3", "description": "@eeacms/volto-slate-label: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team",