fix: remove suppressImplicitAnyIndexErrors from typescript settings (#5991)
This commit is contained in:
1 parent
4e0bed9a13
commit
583e3954be
256 files changed
+952
-692
No files matched your search
@@ -9,7 +9,7 @@ jest.mock('@pnpm/os.env.path-extender', () => ({
|
||||
jest.mock('fs')
|
||||
|
||||
test('setup makes no changes', async () => {
|
||||
addDirToEnvPath['mockReturnValue'](Promise.resolve<PathExtenderReport>({
|
||||
(addDirToEnvPath as jest.Mock).mockReturnValue(Promise.resolve<PathExtenderReport>({
|
||||
oldSettings: 'PNPM_HOME=dir',
|
||||
newSettings: 'PNPM_HOME=dir',
|
||||
}))
|
||||
@@ -18,7 +18,7 @@ test('setup makes no changes', async () => {
|
||||
})
|
||||
|
||||
test('setup makes changes on POSIX', async () => {
|
||||
addDirToEnvPath['mockReturnValue'](Promise.resolve<PathExtenderReport>({
|
||||
(addDirToEnvPath as jest.Mock).mockReturnValue(Promise.resolve<PathExtenderReport>({
|
||||
configFile: {
|
||||
changeType: 'created',
|
||||
path: '~/.bashrc',
|
||||
@@ -38,7 +38,7 @@ source ~/.bashrc
|
||||
})
|
||||
|
||||
test('setup makes changes on Windows', async () => {
|
||||
addDirToEnvPath['mockReturnValue'](Promise.resolve<PathExtenderReport>({
|
||||
(addDirToEnvPath as jest.Mock).mockReturnValue(Promise.resolve<PathExtenderReport>({
|
||||
oldSettings: 'export PNPM_HOME=dir1',
|
||||
newSettings: 'export PNPM_HOME=dir2',
|
||||
}))
|
||||
@@ -50,7 +50,7 @@ Setup complete. Open a new terminal to start using pnpm.`)
|
||||
})
|
||||
|
||||
test('hint is added to ERR_PNPM_BAD_ENV_FOUND error object', async () => {
|
||||
addDirToEnvPath['mockReturnValue'](Promise.reject(new PnpmError('BAD_ENV_FOUND', '')))
|
||||
(addDirToEnvPath as jest.Mock).mockReturnValue(Promise.reject(new PnpmError('BAD_ENV_FOUND', '')))
|
||||
let err!: PnpmError
|
||||
try {
|
||||
await setup.handler({ pnpmHomeDir: '' })
|
||||
@@ -61,7 +61,7 @@ test('hint is added to ERR_PNPM_BAD_ENV_FOUND error object', async () => {
|
||||
})
|
||||
|
||||
test('hint is added to ERR_PNPM_BAD_SHELL_SECTION error object', async () => {
|
||||
addDirToEnvPath['mockReturnValue'](Promise.reject(new PnpmError('BAD_SHELL_SECTION', '')))
|
||||
(addDirToEnvPath as jest.Mock).mockReturnValue(Promise.reject(new PnpmError('BAD_SHELL_SECTION', '')))
|
||||
let err!: PnpmError
|
||||
try {
|
||||
await setup.handler({ pnpmHomeDir: '' })
|
||||
|
||||
Reference in new issue
Block a user