Add very basic integration tests

This commit is contained in:
mrjvs
2023-09-28 19:45:41 +02:00
parent 01d56a49d0
commit 3ca04d8361
8 changed files with 25 additions and 6 deletions

3
tests/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Integration test folder
This folder simply holds some import tests, to see if the library still works with all its dependencies.

2
tests/cjs/index.js Normal file
View File

@@ -0,0 +1,2 @@
require('../../lib/index.umd');
console.log('import successful!');

4
tests/cjs/package.json Normal file
View File

@@ -0,0 +1,4 @@
{
"main": "index.js",
"type": "commonjs"
}

2
tests/esm/index.mjs Normal file
View File

@@ -0,0 +1,2 @@
import '../../lib/index.mjs';
console.log('import successful!');

4
tests/esm/package.json Normal file
View File

@@ -0,0 +1,4 @@
{
"main": "index.mjs",
"type": "module"
}