Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit ced8451
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 17:21:54 2023 +0530

    abs resolution + default imports

    abs resolution + default imports

commit 4f7bda2
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 15:08:58 2023 +0530

    cleanup

commit 47b954f
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 14:38:09 2023 +0530

    node version - this was supposed to throw

commit 6ccd23c
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 14:33:35 2023 +0530

    try to fix node14 ci error

    actions/setup-node#214 (comment)

    npm/npm#19788

commit cb31f22
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 14:09:57 2023 +0530

    Update package-lock.json

commit 248d0be
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 13:59:48 2023 +0530

    forgot the setup

commit 19e20d3
Merge: b9c0da6 f09a52e
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 13:54:49 2023 +0530

    Merge branch 'ci-e2e-rel-imports' of https://github.com/fabricjs/fabric.js into ci-e2e-rel-imports

commit b9c0da6
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 13:54:25 2023 +0530

    extends

commit f09a52e
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date:   Wed Jul 19 08:22:08 2023 +0000

    update CHANGELOG.md

commit 20b9eaa
Author: ShaMan123 <shacharnen@gmail.com>
Date:   Wed Jul 19 13:49:28 2023 +0530

    ci(e2e): support relative imports
  • Loading branch information
ShaMan123 committed Jul 19, 2023
1 parent c90cfbc commit 681adfc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions e2e/.babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ const path = require('path');
const testsDir = path.resolve('./e2e/tests');
const testsBuiltDir = path.resolve('./e2e/dist');

function resolve(file) {
const found = ['', '.js', '/index.js']
.map((resolution) => `${file}${resolution}`)
.find((file) => {
try {
return require.resolve(file);
} catch (error) {
return false;
}
});
if (!found) {
throw new Error(`Failed to resolve ${file}`);
}
return require.resolve(file);
}

module.exports = {
extends: '../.babelrcAlt',
plugins: [
Expand Down

0 comments on commit 681adfc

Please sign in to comment.