Skip to content

Commit

Permalink
update references from c8 to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
tudddorrr committed Apr 27, 2024
1 parent 11e7393 commit 9bea2b1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: cp envs/.env.dev .env

- name: Run tests
run: npm test --coverage
run: npm test -- --coverage

- uses: codecov/codecov-action@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions src/entities/game-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class GameActivity {
this.user = user
}

/* c8 ignore start */
/* v8 ignore start */
private getActivity(): string {
switch (this.type) {
case GameActivityType.PLAYER_PROPS_UPDATED:
Expand Down Expand Up @@ -112,7 +112,7 @@ export default class GameActivity {
return ''
}
}
/* c8 ignore stop */
/* v8 ignore stop */

toJSON() {
return {
Expand Down
4 changes: 2 additions & 2 deletions src/entities/game-secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default class GameSecret {
return decrypt(this.secret, process.env.API_SECRET)
}

/* c8 ignore start */
/* v8 ignore start */
toJSON() {
return {
id: this.id
}
}
/* c8 ignore stop */
/* v8 ignore stop */
}
2 changes: 1 addition & 1 deletion src/middlewares/tracing-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async (ctx: Context, next: Next) => {

// connect to trace of upstream app
let traceparentData
/* c8 ignore next 3 */
/* v8 ignore next 3 */
if (ctx.request.get('sentry-trace')) {
traceparentData = Sentry.extractTraceparentData(ctx.request.get('sentry-trace'))
}
Expand Down
6 changes: 3 additions & 3 deletions src/services/data-export.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export default class DataExportService extends Service {
]), { dataExportId })

await unlink(filepath)
/* c8 ignore start */
/* v8 ignore start */
}, {
failed: async (job: Job<DataExportJob>) => {
await this.updateDataExportStatus(job.data.dataExportId, { failedAt: new Date() })
}
})
/* c8 ignore stop */
/* v8 ignore stop */
}

private async updateDataExportStatus(dataExportId: number, newStatus: UpdatedDataExportStatus): Promise<void> {
Expand Down Expand Up @@ -189,7 +189,7 @@ export default class DataExportService extends Service {
const stats = await em.getRepository(GameStat).find({ game: dataExport.game })

for (const stat of stats) {
/* c8 ignore next 3 */
/* v8 ignore next 3 */
if (stat.global) {
await stat.recalculateGlobalValue(includeDevData)
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/public/demo.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface DemoUserJob {
}

async function scheduleDeletion(req: Request, res: Response, caller: DemoService): Promise<void> {
/* c8 ignore next 3 */
/* v8 ignore next 3 */
if (res.status === 200) {
await caller.queue.add('demo-user', { userId: res.body.user.id }, { delay: 3600000 })
}
Expand Down
4 changes: 2 additions & 2 deletions src/services/public/user-public.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import ResetPassword from '../../emails/reset-password'
async function sendEmailConfirm(req: Request, res: Response): Promise<void> {
const user: User = req.ctx.state.user

/* c8 ignore start */
/* v8 ignore start */
if (res.status === 200 && !user.emailConfirmed) {
const em: EntityManager = req.ctx.em

Expand All @@ -36,7 +36,7 @@ async function sendEmailConfirm(req: Request, res: Response): Promise<void> {

await queueEmail(req.ctx.emailQueue, new ConfirmEmail(user, accessCode.code))
}
/* c8 ignore stop */
/* v8 ignore stop */
}

@Routes([
Expand Down
4 changes: 2 additions & 2 deletions src/services/public/webhook.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ export default class WebhookService extends Service {
req.headers['stripe-signature'],
process.env.STRIPE_WEBHOOK_SECRET
)
/* c8 ignore start */
/* v8 ignore start */
} catch (err) {
Sentry.captureException(err)
req.ctx.throw(401)
}
/* c8 ignore stop */
/* v8 ignore stop */

switch (event.type) {
case 'customer.subscription.deleted':
Expand Down

0 comments on commit 9bea2b1

Please sign in to comment.