精简后的项目:仅保留 api/ui 源码、文档、构建依赖
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom'
|
||||
import '@testing-library/user-event'
|
||||
|
||||
import { setupLocalization } from '../src/localization'
|
||||
|
||||
// setup localization to make it easier to select elements by text
|
||||
setupLocalization()
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Mock .svg imports
|
||||
*/
|
||||
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
process(_, filename) {
|
||||
return 'module.exports = "' + path.basename(filename) + '.svg"'
|
||||
},
|
||||
getCacheKey(_, filename) {
|
||||
// The output is based on path.
|
||||
return path.basename(filename)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user