• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inclusion-numerique / coop-mediation-numerique / 10b7467f-6706-4012-9cfc-0c336b9de477

01 Apr 2026 03:31PM UTC coverage: 7.472% (-3.2%) from 10.692%
10b7467f-6706-4012-9cfc-0c336b9de477

push

circleci

web-flow
Merge pull request #467 from inclusion-numerique/refactor/ajouter-lieux

refactor(inscription): extract ajouterLieuxActivite into modular use-case

500 of 10544 branches covered (4.74%)

Branch coverage included in aggregate %.

145 of 186 new or added lines in 15 files covered. (77.96%)

1379 existing lines in 152 files now uncovered.

1500 of 16224 relevant lines covered (9.25%)

36.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/web/src/utils/serialization.ts
1
import { Decimal } from 'decimal.js'
2
import superjson from 'superjson'
3
import { SuperJSONResult } from 'superjson/dist/types'
4

UNCOV
5
superjson.registerCustom<Decimal, string>(
×
6
  {
7
    isApplicable: (v): v is Decimal => Decimal.isDecimal(v),
×
8
    serialize: (v) => v.toJSON(),
×
9
    deserialize: (v) => new Decimal(v),
×
10
  },
11
  'decimal.js',
12
)
13

14
/** ⚠️ When serializing server data to pass to client components it becomes available to the browser.
15
 * Always check what is included in the data you serialize before passing it to a client component.
16
 */
17

18
// Helper type to obfuscate serialized data
19
// biome-ignore lint/correctness/noUnusedVariables: We need the unused <T> to carry the type on deserialization.
20
export type Serialized<T> = { __serialized: symbol }
21

UNCOV
22
export const serialize = <T>(data: T): Serialized<T> =>
×
23
  superjson.serialize(data) as never as Serialized<T>
×
24

UNCOV
25
export const deserialize = <T>(data: Serialized<T>): T =>
×
26
  superjson.deserialize(data as never as SuperJSONResult)
×
27

UNCOV
28
export const transformer = { serialize, deserialize }
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc