Skip to content

Conversation

@mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Jan 18, 2022

What does this PR do?

the last of the source commands from toolbelt

What issues does this PR fix or reference?

@W-10449080@

import { AuthStrategy } from '@salesforce/cli-plugins-testkit/lib/hubAuth';
import { SourceIgnoredResults } from '../../src/commands/force/source/ignored/list';

describe('force:source:ignored:list', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we test the "no ignored files" possibility?

"flags": {
"sourcepath": "file or directory of files that the command checks for foreceignored files"
},
"invalidSourcePath": "File or directory '%s' doesn't exist in your project. Specify one that exists and rerun the command."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this message used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call...not anymore. SDR is gonna handle that

@WillieRuemmele
Copy link
Contributor

WillieRuemmele commented Jan 19, 2022

QA:
with forcedotcom/source-deploy-retrieve#553 linked on a stock dreamhouse-lwc project

force:source:ignored:list previously included all of the __tests__ directories, now it doesn't show them
✅ : no results found
✅ : JSON structure the same, but missing files from first point above
✅ : handles nested .forceignores as long as -p points to the parent directory of the nested .forecignore (toolbelt didn't recognize any new .forceignores)
❓ : didn't read nested .forceignore it discovered (same as toolbelt)

@WillieRuemmele
Copy link
Contributor

QA:
✅ : includes __tests__ correctly
✅ : JSON
✅ : no results
✅ : -p behavior
✅ : -p <file doesn't exist> errors correctly

@WillieRuemmele WillieRuemmele merged commit 232bca9 into main Jan 20, 2022
@WillieRuemmele WillieRuemmele deleted the sm/ignored branch January 20, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants