Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions static/app/views/settings/projectDebugFiles/utils.spec.tsx
Original file line number Diff line number Diff line change
@@ -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');
});
});
1 change: 1 addition & 0 deletions static/app/views/settings/projectDebugFiles/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
};
Expand Down
Loading