Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions libs/accounts/errors/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
11 changes: 11 additions & 0 deletions libs/accounts/errors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# account-errors

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build accounts-errors` to build the library.

## Running unit tests

Run `nx test-unit accounts-errors` to execute the unit tests via [Jest](https://jestjs.io).
21 changes: 21 additions & 0 deletions libs/accounts/errors/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* eslint-disable */
export default {
displayName: 'accounts-errors',
preset: '../../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../../coverage/libs/accounts/errors',
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'artifacts/tests/lib/accounts/errors',
outputName: 'accounts-errors-jest-unit-results.xml',
},
],
],
};
9 changes: 9 additions & 0 deletions libs/accounts/errors/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@fxa/accounts/errors",
"version": "0.0.1",
"dependencies": {},
"type": "commonjs",
"main": "./index.cjs",
"types": "./index.d.ts",
"private": true
}
37 changes: 37 additions & 0 deletions libs/accounts/errors/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "accounts-errors",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/accounts/errors/src",
"projectType": "library",
"tags": ["scope:shared:lib"],
"targets": {
"build": {
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/accounts/errors",
"main": "libs/accounts/errors/src/index.ts",
"tsConfig": "libs/accounts/errors/tsconfig.lib.json",
"assets": ["libs/accounts/errors/*.md"],
"format": ["cjs"],
"generatePackageJson": true
}
},
"test-unit": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/accounts/errors/jest.config.ts",
"testPathPattern": ["^(?!.*\\.in\\.spec\\.ts$).*$"]
}
},
"test-integration": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/accounts/errors/jest.config.ts",
"testPathPattern": ["\\.in\\.spec\\.ts$"]
}
}
}
}
Loading