mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
20 lines
548 B
JavaScript
20 lines
548 B
JavaScript
// Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
const typesFile = path.resolve(
|
|
'node_modules/@types/testing-library__jest-dom/index.d.ts',
|
|
)
|
|
const encoding = 'utf8'
|
|
const strings = {
|
|
search: '/// <reference types="jest" />',
|
|
replace:
|
|
'// See https://github.com/testing-library/jest-dom/issues/427 for reference',
|
|
}
|
|
|
|
const result = fs
|
|
.readFileSync(typesFile, encoding)
|
|
.replace(strings.search, strings.replace)
|
|
|
|
fs.writeFileSync(typesFile, result, encoding)
|