Modify tests to work with jasmine in Nodejs
--- a/tests/helpers/h.js
+++ b/tests/helpers/h.js
@@ -1,3 +1,5 @@
+const XRegExp = require("../../src/index.js");
+
 // Ensure that all opt-in features are disabled when each spec starts
 beforeEach(function() {
     XRegExp.uninstall('natives astral');
@@ -64,3 +67,11 @@
         };
     }
 }());
+
+module.exports = {
+    repeat,
+    REGEX_DATA,
+    hasNativeU,
+    hasNativeY,
+    hasStrictMode
+}
--- a/tests/spec/s-xregexp-natives.js
+++ b/tests/spec/s-xregexp-natives.js
@@ -1,3 +1,6 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+
 describe('When overridden, RegExp.prototype.exec()', function() {
 
     beforeEach(function() {
@@ -595,6 +598,7 @@
 
 });
 
+
 describe('When overridden, String.prototype.split()', function() {
 
     beforeEach(function() {
@@ -610,3 +614,4 @@
     // NOTE: The fixed String.prototype.split does not provide any extensions to native handling
 
 });
+
--- a/tests/spec/s-addons-build.js
+++ b/tests/spec/s-addons-build.js
@@ -1,3 +1,6 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+
 describe('XRegExp.build addon:', function() {
 
     describe('XRegExp.build()', function() {
--- a/tests/spec/s-addons-matchrecursive.js
+++ b/tests/spec/s-addons-matchrecursive.js
@@ -1,3 +1,6 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+
 describe('XRegExp.matchRecursive addon:', function() {
 
     describe('XRegExp.matchRecursive()', function() {
--- a/tests/spec/s-addons-unicode.js
+++ b/tests/spec/s-addons-unicode.js
@@ -1,3 +1,7 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+const { testUnicodeToken } = require("../helpers/h-unicode.js");
+
 describe('Unicode Base addon:', function() {
 
     /*
--- a/tests/spec/s-xregexp.js
+++ b/tests/spec/s-xregexp.js
@@ -1,3 +1,6 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+
 describe('XRegExp()', function() {
 
     it('should create objects that pass RegExp type checks', function() {
--- a/tests/spec/s-xregexp-methods.js
+++ b/tests/spec/s-xregexp-methods.js
@@ -1,3 +1,6 @@
+const XRegExp = require("../../src/index.js");
+const { repeat, REGEX_DATA, hasNativeU, hasNativeY, hasStrictMode } = require("../helpers/h.js");
+
 describe('XRegExp.addToken()', function() {
 
     it('should throw an exception if provided a non-RegExp object as the regex argument', function() {
--- a/tests/helpers/h-unicode.js
+++ b/tests/helpers/h-unicode.js
@@ -1,3 +1,5 @@
+const XRegExp = require("../../src/index.js");
+
 /*
  * Runs a series of `expect` assertions, given a Unicode token name and arrays of code points that
  * should or should not be matched.
@@ -108,3 +110,7 @@
         return code;
     };
 }*/
+
+module.exports = {
+    testUnicodeToken
+}
