精简后的项目:仅保留 api/ui 源码、文档、构建依赖

This commit is contained in:
gallery
2026-09-11 16:11:09 +08:00
commit 490e85634e
457 changed files with 86862 additions and 0 deletions
+11
View File
@@ -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()
+15
View File
@@ -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)
},
}