From 849846011b8dc2c8976d1c76b72facb4461712b9 Mon Sep 17 00:00:00 2001 From: Ben Heidemann Date: Sat, 3 Apr 2021 18:05:02 +0100 Subject: [PATCH] test: separate webpack tests so they're not run with the other test --- tests/webpack-tests.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/webpack-tests.js b/tests/webpack-tests.js index 29e1dd0..ab92de9 100644 --- a/tests/webpack-tests.js +++ b/tests/webpack-tests.js @@ -4,5 +4,13 @@ require('mocha/mocha.css'); // Setup mocha and set it to run tests on window load require('./setup-mocha'); -// Add any new tests to `tests/index.js` +var path = require('../shims/path').default; +console.log(path.isAbsolute('/a/b')); + +// Add any webpack specific tests here e.g. shim tests +require('./spec/shims/fs.spec'); +require('./spec/shims/path.spec'); +require('./spec/shims/buffer.spec'); + +// Add any other new tests to `tests/index.js` require('./index');