@live-codes/browser-compilers 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -34,9 +34,10 @@
34
34
  "@tailwindcss/forms": "0.5.3",
35
35
  "@tailwindcss/line-clamp": "0.4.4",
36
36
  "@tailwindcss/typography": "0.5.9",
37
- "@testing-library/dom": "9.3.0",
38
- "@testing-library/jest-dom": "5.16.5",
39
- "@testing-library/react": "14.0.0",
37
+ "@testing-library/dom": "10.4.0",
38
+ "@testing-library/jest-dom": "6.6.3",
39
+ "@testing-library/react": "16.1.0",
40
+ "@testing-library/user-event": "14.5.2",
40
41
  "@tokencss/core": "0.1.0",
41
42
  "@tokencss/postcss": "0.0.5",
42
43
  "@typescript/ata": "0.9.4",
@@ -294,7 +294,7 @@ fs.copyFileSync(
294
294
  );
295
295
 
296
296
  // @testing-library
297
- ['dom.js', 'jest-dom.js', 'react.js'].forEach(
297
+ ['dom.js', 'jest-dom.js', 'react.js', 'react-pure.js', 'user-event.js'].forEach(
298
298
  // entryPoints did not work properly!
299
299
  (mod) => {
300
300
  esbuild
@@ -303,7 +303,10 @@ fs.copyFileSync(
303
303
  entryPoints: ['vendor_modules/imports/@testing-library/' + mod],
304
304
  outdir: 'dist/@testing-library/',
305
305
  format: 'esm',
306
- plugins: [externalCjsToEsmPlugin(['react'])],
306
+ define: {
307
+ 'process.env.NODE_ENV': '"development"',
308
+ },
309
+ external: ['react', 'react-dom'],
307
310
  })
308
311
  .then(() => {
309
312
  if (mod !== 'jest-dom.js') return;
@@ -0,0 +1 @@
1
+ export * from '@testing-library/react/pure';
@@ -0,0 +1,4 @@
1
+ import userEvent from '@testing-library/user-event';
2
+
3
+ export * from '@testing-library/user-event';
4
+ export default userEvent;