diff --git a/static/app/views/settings/projectDebugFiles/utils.spec.tsx b/static/app/views/settings/projectDebugFiles/utils.spec.tsx new file mode 100644 index 000000000000..05480f9aa419 --- /dev/null +++ b/static/app/views/settings/projectDebugFiles/utils.spec.tsx @@ -0,0 +1,23 @@ +import {DebugFileFixture} from 'sentry-fixture/debugFile'; + +import {getPrettyFileType} from './utils'; + +describe('getPrettyFileType', () => { + it('labels WASM source maps', () => { + const dsym = DebugFileFixture({ + symbolType: 'wasmsourcemap', + cpuName: 'any', + data: undefined, + }); + expect(getPrettyFileType(dsym)).toBe('WebAssembly source map'); + }); + + it('falls back to the raw symbol type for unknown types', () => { + const dsym = DebugFileFixture({ + symbolType: 'somethingnew', + cpuName: 'any', + data: undefined, + }); + expect(getPrettyFileType(dsym)).toBe('somethingnew'); + }); +}); diff --git a/static/app/views/settings/projectDebugFiles/utils.tsx b/static/app/views/settings/projectDebugFiles/utils.tsx index aac821dbccf0..184f9b985901 100644 --- a/static/app/views/settings/projectDebugFiles/utils.tsx +++ b/static/app/views/settings/projectDebugFiles/utils.tsx @@ -12,6 +12,7 @@ const PRETTY_SYMBOL_TYPES = { portablepdb: t('Portable PDB'), sourcebundle: t('SourceBundle'), wasm: t('WebAssembly'), + wasmsourcemap: t('WebAssembly source map'), bcsymbolmap: t('BCSymbolMap'), il2cpp: t('IL2CPP mapping'), };