Skip to content

Commit

Permalink
chore(deps): update dependency bob-the-bundler to v6 (#5118)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency bob-the-bundler to v6

* Go

* Correct test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
  • Loading branch information
renovate[bot] and ardatan authored Apr 6, 2023
1 parent 828fbf9 commit 263e302
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
9 changes: 1 addition & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ const tsconfig = require(TSCONFIG);

const ESM_PACKAGES = ['graphql', 'graphql-upload', 'fs-capacitor'];

const bobPath = require.resolve('bob-the-bundler/package.json').replace('package.json', '');
const jestResolverPath = join(bobPath, 'jest-resolver.js');

const jestResolverContent = fs.readFileSync(jestResolverPath, 'utf-8');

fs.writeFileSync(join(bobPath, 'jest-resolver.cjs'), jestResolverContent);

module.exports = {
testEnvironment: 'node',
rootDir: ROOT_DIR,
Expand All @@ -31,5 +24,5 @@ module.exports = {
'^.+\\.js$': 'babel-jest',
},
transformIgnorePatterns: [`node_modules/(?!(${ESM_PACKAGES.join('|')})/)`],
resolver: 'bob-the-bundler/jest-resolver.cjs',
resolver: 'bob-the-bundler/jest-resolver',
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.57.1",
"babel-jest": "29.5.0",
"bob-the-bundler": "5.0.1",
"bob-the-bundler": "6.0.0",
"chalk": "4.1.2",
"concurrently": "8.0.1",
"eslint": "8.37.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/url/tests/url-loader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ describe('Schema URL Loader', () => {
i++;
}

expect.assertions(5);
expect(i).toBe(3);
});
it('should handle aliases properly', async () => {
const customFetch: AsyncFetchFn = async (_, options) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4168,10 +4168,10 @@ bl@^4.0.3:
inherits "^2.0.4"
readable-stream "^3.4.0"

bob-the-bundler@5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-5.0.1.tgz#4c41534737ed04de822a09e5c2cf959967bf7d68"
integrity sha512-oFl2AuEaEQgCVk+nDf2wqSyCzgzE4e4bRZb0/kRynRH+wRGT7725K/99bp2PTJof6nM2GJRD7PfMPHgfuE1bIQ==
bob-the-bundler@6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-6.0.0.tgz#963a796962925b6c3f3231f4852a72ead3e2ce5b"
integrity sha512-QsqJzXFOm1Tq7AxqZ8ZEEhC4G5RceWdC21VUsZm6UKB2PmruszDrlh/sufJmR/NIUbTueFARueja8UzSSirmPA==
dependencies:
"@vercel/ncc" "^0.36.0"
consola "^2.15.3"
Expand Down

0 comments on commit 263e302

Please sign in to comment.