From 432fac8fdab0c7a6022a54a88fa1cdbbed892241 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:22:44 -0700 Subject: [PATCH] Chore: Fix CI (#11173) --- packages/lib/utils/replaceUnsupportedCharacters.test.ts | 4 ++-- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib/utils/replaceUnsupportedCharacters.test.ts b/packages/lib/utils/replaceUnsupportedCharacters.test.ts index 7c48ec87515..8bc80f5ceab 100644 --- a/packages/lib/utils/replaceUnsupportedCharacters.test.ts +++ b/packages/lib/utils/replaceUnsupportedCharacters.test.ts @@ -2,7 +2,7 @@ import replaceUnsupportedCharacters from './replaceUnsupportedCharacters'; describe('replaceUnsupportedCharacters', () => { test('should replace NULL characters', () => { - expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test�...'); - expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('�Test�...'); + expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test\uFFFD...'); + expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('\uFFFDTest\uFFFD...'); }); }); diff --git a/tsconfig.json b/tsconfig.json index 79e38e255db..eb2376e9305 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2015", + "target": "es2017", //"lib": ["es2015", "es2020.string", "dom", "dom.iterable"], "alwaysStrict": true, "forceConsistentCasingInFileNames": true,