Skip to content

Commit f2ba502

Browse files
authored
Merge pull request #2136 from actions/dependabot/npm_and_yarn/packages/artifact/artifact-minor-patch-612b72ffd4
Bump the artifact-minor-patch group in /packages/artifact with 5 updates
2 parents 8e146e1 + 1db3130 commit f2ba502

File tree

3 files changed

+1120
-500
lines changed

3 files changed

+1120
-500
lines changed

packages/artifact/__tests__/config.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import * as config from '../src/internal/shared/config'
22
import os from 'os'
33

4-
// Mock the 'os' module
5-
jest.mock('os', () => ({
6-
cpus: jest.fn()
7-
}))
4+
// Mock the `cpus()` function in the `os` module
5+
jest.mock('os', () => {
6+
const osActual = jest.requireActual('os')
7+
return {
8+
...osActual,
9+
cpus: jest.fn()
10+
}
11+
})
812

913
beforeEach(() => {
1014
jest.resetModules()

0 commit comments

Comments
 (0)