Skip to content

Commit

Permalink
feat(UpdatePassword):User is able to update password
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestTchami committed Jun 7, 2024
1 parent b633aa5 commit f7d05ea
Show file tree
Hide file tree
Showing 28 changed files with 13,056 additions and 8,948 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_URL=https://champs-ec-be.onrender.com/api
# NEXT_PUBLIC_URL=https://champs-ec-be.onrender.com/api
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended",
"plugin:storybook/recommended"
"plugin:storybook/recommended",
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"env": {
"browser": true,
Expand Down
13 changes: 5 additions & 8 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import type { Config } from 'jest';
import nextJest from 'next/jest.js';
const createJestConfig = nextJest({
dir: './'
dir: './',
});
const config: Config = {
coverageProvider: 'v8',
testEnvironment: 'jsdom',
collectCoverage: true,
coverageDirectory: 'coverage',
collectCoverageFrom: ['src/**'],
coveragePathIgnorePatterns: ['src/components/',],
coverageReporters: [
"json-summary",
"text",
"lcov"
]
coveragePathIgnorePatterns: ['src/components/'],
coverageReporters: ['json-summary', 'text', 'lcov'],
preset: 'ts-jest',
};

export default createJestConfig(config);
export default createJestConfig(config);
15 changes: 15 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import '@testing-library/jest-dom/extend-expect';
// import 'whatwg-fetch';
// import { server } from './mocks/server';

// beforeAll(() => {
// server.listen();
// });

// afterEach(() => {
// server.resetHandlers();
// });

// afterAll(() => {
// server.close();
// });
2 changes: 1 addition & 1 deletion lib/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Button from '@/app/components/Button'
import Button from '@/components/Buttonbook'
import type {Meta,StoryObj} from '@storybook/react'


Expand Down
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import { resolve } from 'path';
config({ path: resolve(process.cwd(), '.env.local') });

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
env: {
URL: process.env.URL,
},
};
// next.config.js

export default nextConfig;
Loading

0 comments on commit f7d05ea

Please sign in to comment.