Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/dep-time-travel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ if [[ "$TRAVIS_NODE_VERSION" -lt "8" ]]; then
npm i --no-save eslint-import-resolver-typescript@1.0.2
fi

# linklocal (pretest) symlinks the local resolver source, but old npm doesn't install its nested deps
if [[ "$TRAVIS_NODE_VERSION" -lt "10" ]]; then
for dir in resolvers/*/; do
echo "Installing dependencies for ${dir}..."
(cd "$dir" && npm install)
done
fi

if [ "${ESLINT_VERSION}" = '8' ]; then
# This is a workaround for the crash in the initial processing of the ESLint class.
echo "Installing self"
Expand Down
1 change: 1 addition & 0 deletions tests/src/core/importType.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ describe('importType(name)', function () {
});

it("should return 'internal' for aliased internal modules that look like core modules (webpack resolver)", function () {
this.timeout(10000); // initial load of the webpack resolver is slow on old Node + macOS CI
const webpackConfig = { resolve: { modules: [pathToTestFiles, 'node_modules'] } };
const pathContext = testContext({ 'import/resolver': { webpack: { config: webpackConfig } } });
expect(importType('constants/index', pathContext)).to.equal('internal');
Expand Down
Loading