-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ft codeclimate test #17
Conversation
Deleting env file
removing related test coverage
Removing file for test coverage
Removing files for test coverage
…e-commerce-furebo-32-bn into ft-Codeclimate-test
This comment was marked as duplicate.
This comment was marked as duplicate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to me
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token up
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token up
@@ -0,0 +1,11 @@ | |||
import { Sequelize, Dialect } from 'sequelize'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
@@ -0,0 +1,40 @@ | |||
import { DataTypes, Model } from 'sequelize'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
db.sequelize = sequelize; | ||
db.Sequelize = Sequelize; | ||
|
||
module.exports = db; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'module' is not defined no-undef
); | ||
}) | ||
.forEach(file => { | ||
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'__dirname' is not defined no-undef
'require' is not defined no-undef
} | ||
|
||
fs | ||
.readdirSync(__dirname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'__dirname' is not defined no-undef
const process = require('process'); | ||
const basename = path.basename(__filename); | ||
const env = process.env.NODE_ENV || 'development'; | ||
const config = require(__dirname + '/../config/config.json')[env]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'__dirname' is not defined no-undef
'require' is not defined no-undef
const path = require('path'); | ||
const Sequelize = require('sequelize'); | ||
const process = require('process'); | ||
const basename = path.basename(__filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'__filename' is not defined no-undef
const fs = require('fs'); | ||
const path = require('path'); | ||
const Sequelize = require('sequelize'); | ||
const process = require('process'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined no-undef
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
const Sequelize = require('sequelize'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined no-undef
'use strict'; | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined no-undef
@@ -0,0 +1,43 @@ | |||
'use strict'; | |||
|
|||
const fs = require('fs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined no-undef
What does this PR do?
This PR integrates test coverage reporting into the project using CodeClimate and adds a coverage badge to the README file to display the current test coverage status.
Describe your changes
1.Added Coverage Reporting:
Installed the codeclimate-test-reporter package.
Configured Jest to generate lcov coverage reports.
Updated CircleCI configuration to run tests, generate coverage reports, and upload them to CodeClimate.
Configured Coverage Thresholds:
2.Enforced a minimum test coverage threshold in CodeClimate settings.
Added Coverage Badge to README:
3.Included a test coverage badge at the top of the README.md file.
PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[x] Tests
[ ] Other
How should this be manually tested?
1.Check Test Coverage Reporting:
Push a commit to trigger the CircleCI build.
Verify that tests run and the coverage report is generated and uploaded to CodeClimate.
2.Check Coverage Badge:
Ensure the coverage badge in the README.md file reflects the current test coverage percentage.
What are the relevant pivotal tracker stories?
Pivotal Tracker Link