🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@testgorilla/tgo-typing-test

Package Overview
Dependencies
Maintainers
15
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testgorilla/tgo-typing-test

Typing Test component

latest
npmnpm
Version
5.0.0
Version published
Weekly downloads
303
-33.26%
Maintainers
15
Weekly downloads
 
Created
Source

@testgorilla/tgo-typing-test

Typing Test component for TestGorilla assessments.

Installation

npm install @testgorilla/tgo-typing-test

Usage

import { TgoTypingTestComponent } from '@testgorilla/tgo-typing-test';

@Component({
  imports: [TgoTypingTestComponent],
  template: `
    <tgo-typing-test
      [time]="time!"
      [showMiniTimerAndLiveWpm]="false"
      [punctuation]="_typingTestMode?.punctuation!"
      [numbers]="_typingTestMode?.numbers!"
      [customTGQuotes]="_typingTestMode?.sentences!"
      [funbox]="_typingTestMode?.funbox!"
      [restartTest]="false"
      [testVersion]="(test$ | async)?.test_version ?? 1"
      [testExpiration$]="testExpiration$"
      (replayExport)="updateTypingSnapshots($event)"
      (resultEvent)="updateTypingTest($event)"
      (errorEvent)="handleError($event)"
    >
    </tgo-typing-test>
  `,
})
export class MyComponent {}

API

Inputs

NameTypeRequiredDefaultDescription
timenumberNo180Test duration in seconds
showMiniTimerAndLiveWpmbooleanNotrueShow mini timer and live WPM display
punctuationbooleanNofalseInclude punctuation in test
numbersbooleanNofalseInclude numbers in test
customTGQuotesbooleanNofalseUse custom TestGorilla quotes/sentences
funboxstringNo'none'Funbox mode for visual effects
restartTestbooleanNofalseTrigger to restart the test
testVersionnumberNo1Test version for sentence variations
testExpiration$Observable<void>No-Observable to trigger test expiration externally

Outputs

NameTypeDescription
resultEventEventEmitter<any>Emits test results when test completes
replayExportEventEmitter<any>Emits replay data for test playback
errorEventEventEmitter<string>Emits error messages (e.g., network errors)

TgoTypingReplayInputComponent

import { TgoTypingReplayInputComponent } from '@testgorilla/tgo-typing-test';

@Component({
  imports: [TgoTypingReplayInputComponent],
  template: `
    <tgo-typing-replay-input
      [replayExport]="replayData"
      [funbox]="funbox"
      class="funbox"
      data-testid="candidate.typing-report.replay-input"
    ></tgo-typing-replay-input>
  `,
})
export class MyComponent {}

API

Inputs

NameTypeRequiredDefaultDescription
replayExportanyYes-Replay data exported from TgoTypingTestComponent
funboxstringNo'none'Funbox mode for visual effects (must match original test)

Outputs

This component has no outputs. It automatically plays the replay after initialization.

FAQs

Package last updated on 24 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts