3 Commits

Author SHA1 Message Date
Titouan Galopin edd246b564 Tagging 2.0.1 2021-12-09 15:50:35 +01:00
Titouan Galopin cc5151bde1 bug #5 Fix usage of 2.0 with Jest (tgalopin)
This PR was merged into the main branch.

Discussion
----------

Fix usage of 2.0 with Jest

Commits
-------

b79342d Fix usage of 2.0 with Jest
2021-12-09 15:50:10 +01:00
Titouan Galopin b79342d6c4 Fix usage of 2.0 with Jest 2021-12-09 15:49:32 +01:00
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@symfony/stimulus-testing",
"description": "@testing-library integration for Symfony UX",
"version": "2.0.0",
"version": "2.0.1",
"main": "src/index.js",
"license": "MIT",
"author": "Titouan Galopin <galopintitouan@gmail.com>",
+2 -4
View File
@@ -9,7 +9,7 @@
'use strict';
const mountDOM = (htmlString = '') => {
module.exports.mountDOM = (htmlString = '') => {
const div = document.createElement('div');
div.innerHTML = htmlString;
document.body.appendChild(div);
@@ -17,8 +17,6 @@ const mountDOM = (htmlString = '') => {
return div;
};
const clearDOM = () => {
module.exports.clearDOM = () => {
document.body.innerHTML = '';
};
export { clearDOM, mountDOM };