feat: nwaifu-ui lib with btn

This commit is contained in:
2024-06-08 01:18:39 +03:00
parent 169930cbf9
commit 16b6e34ed9
35 changed files with 337 additions and 164 deletions

23
jest.config.app.ts Normal file
View File

@@ -0,0 +1,23 @@
/* eslint-disable */
export default {
displayName: 'NitroPlusTranslator',
preset: './jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: './coverage/NitroPlusTranslator',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
],
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
testMatch: ['<rootDir>/src/**/__tests__/**/*.[jt]s?(x)', '<rootDir>/src/**/*(*.)@(spec|test).[jt]s?(x)'],
};