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,