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

jorgebodega / typeorm-seeding / 5376909682

pending completion
5376909682

Pull #280

github

web-flow
Merge cd873c32d into 52feb9e0d
Pull Request #280: chore: update pnpm to v8.6.5

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

107 of 107 relevant lines covered (100.0%)

4.76 hits per line

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

100.0
/src/datasource/DataSourceManager.ts
1
import type { DataSource } from 'typeorm'
2
import { DataSourceNotProvidedError } from '../errors'
5✔
3

4
export class DataSourceManager {
5✔
5
  private static _instance: DataSourceManager
6
  private _dataSource: DataSource | undefined
7

8
  static getInstance() {
9
    if (!DataSourceManager._instance) {
26✔
10
      DataSourceManager._instance = new DataSourceManager()
5✔
11
    }
12

13
    return DataSourceManager._instance
26✔
14
  }
15

16
  get dataSource(): DataSource {
17
    if (!this._dataSource) {
14✔
18
      throw new DataSourceNotProvidedError()
1✔
19
    }
20

21
    return this._dataSource
13✔
22
  }
23

24
  set dataSource(dataSource: DataSource | undefined) {
25
    this._dataSource = dataSource
12✔
26
  }
27
}
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

© 2025 Coveralls, Inc