From ecd027e7a9ae5ad891f1d7f91486336e1fb67869 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:00:54 -0600 Subject: [PATCH] fix: fixed tests (hard-code validator name to global browser scope) --- build-browser.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build-browser.js b/build-browser.js index 76c9ba337..04424bbe7 100644 --- a/build-browser.js +++ b/build-browser.js @@ -17,7 +17,12 @@ rollup({ .then((bundle) => bundle.write({ file: "validator.js", - name: pkg.name, + // name: pkg.name, + // NOTE: hard-coded below due to @forwardemail/validator + // otherwise tests won't pass in `test/validators.test.js` + // it('should bind validator to the window if no module loaders are available', () => { + // + name: 'validator', format: "umd", banner: `/*!\n${String(fs.readFileSync("./LICENSE")) .trim()