Skip to content

Commit

Permalink
Merge pull request #27 from zhumeisongsong/feature/rename-to-UserProm…
Browse files Browse the repository at this point in the history
…ptLog

refactor: ♻️ rename to UserPromptLogEntity
  • Loading branch information
zhumeisongsong authored Nov 12, 2024
2 parents 53ff0e7 + ce21d1a commit 9775dac
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
7 changes: 0 additions & 7 deletions libs/prompt/domain/daily-prompt-record-entity/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions libs/prompt/domain/daily-prompt-record-entity/project.json

This file was deleted.

1 change: 0 additions & 1 deletion libs/prompt/domain/daily-prompt-record-entity/src/index.ts

This file was deleted.

7 changes: 7 additions & 0 deletions libs/prompt/domain/user-prompt-log-entity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# user-prompt-log-entity

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

## Running unit tests

Run `nx test user-prompt-log-entity` to execute the unit tests via [Jest](https://jestjs.io).
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default {
displayName: 'daily-prompt-record-entity',
displayName: 'user-prompt-log-entity',
preset: '../../../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory:
'../../../../coverage/libs/prompt/domain/daily-prompt-record-entity',
'../../../../coverage/libs/prompt/domain/user-prompt-log-entity',
};
9 changes: 9 additions & 0 deletions libs/prompt/domain/user-prompt-log-entity/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "user-prompt-log-entity",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/prompt/domain/user-prompt-log-entity/src",
"projectType": "library",
"tags": [],
"// targets": "to see all targets run: nx show project user-prompt-log-entity --web",
"targets": {}
}
1 change: 1 addition & 0 deletions libs/prompt/domain/user-prompt-log-entity/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/user-prompt-log-entity';
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {type DailyPromptRecordEntity } from './daily-prompt-record-entity';
import {type UserPromptLogEntity } from './user-prompt-log-entity';

describe('DailyPromptRecordEntity', () => {
describe('UserPromptLogEntity', () => {
it('should have all required properties', () => {
const record: DailyPromptRecordEntity = {
const record: UserPromptLogEntity = {
id: '1',
promptId: 'prompt1',
userId: 'user1',
Expand All @@ -18,7 +18,7 @@ describe('DailyPromptRecordEntity', () => {
});

it('should have correct types for properties', () => {
const record: DailyPromptRecordEntity = {
const record: UserPromptLogEntity = {
id: '1',
promptId: 'prompt1',
userId: 'user1',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface DailyPromptRecordEntity {
export interface UserPromptLogEntity {
id: string;
promptId: string;
userId: string;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@graphql-federation-workspace/applications-config": [
"libs/application-config/src/index.ts"
],
"@prompt/daily-prompt-record-entity": [
"libs/prompt/domain/daily-prompt-record-entity/src/index.ts"
"@prompt/user-prompt-log-entity": [
"libs/prompt/domain/user-prompt-log-entity/src/index.ts"
],
"@prompt/wellbeing-prompt-entity": [
"libs/prompt/domain/wellbeing-prompt-entity/src/index.ts"
Expand Down

0 comments on commit 9775dac

Please sign in to comment.