-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: use 'testplane.config.[tj]s' config name #40
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,14 @@ describe("package", () => { | |
}); | ||
|
||
describe("initApp", () => { | ||
[".testplane.conf.ts", ".testplane.conf.js", ".hermione.conf.ts", ".hermione.conf.js"].forEach(configName => { | ||
[ | ||
".testplane.conf.ts", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can get names from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is good in source files, but i dont think it is in test files. I want small typo in CONFIG_NAMES to break these tests, so you would double-check it here |
||
".testplane.conf.js", | ||
".hermione.conf.ts", | ||
".hermione.conf.js", | ||
"testplane.config.ts", | ||
"testplane.config.cjs", | ||
].forEach(configName => { | ||
it(`should throw an error, if ${configName} exists`, async () => { | ||
const dirPath = "/dir/path"; | ||
jest.mocked(fsUtils.exists).mockImplementation(file => | ||
|
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.
https://github.com/gemini-testing/testplane/blob/745258b13ba0150825c7cb7419d19c5f4bf8e348/src/config/defaults.js#L124-L127
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.
Тут перечисляем список, чтобы кидать ошибку при попытке перезаписать имеющийся конфиг (проинициализировать testplane в проекте, где он уже есть):