C:\Users\knaito\Documents\work\cordova-develop\cordova-windows\testcreate 応用\cordova\node_modules\fs-extra\lib\copy-sync\copy-sync.js:185
throw new Error('Source and destination must not be the same.')
Error: Source and destination must not be the same.
Description
The above error happens because FileUpdater in cordova-common checks args strictly. (The older cordova-common, does not check args strictly)
Therefore this PR updates tests' directory structure in order to statisfy the correct args.
Detecting config.xml in cordova/prepare is also improved accroding to the new tests' directory structure.
Testing
npm run test
Checklist
[x] I've run the tests to see all new and existing tests pass
[ ] I added automated test coverage as appropriate for this change
[ ] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
Platforms affected
windows
Motivation and Context
Fixing following spec error
Description
The above error happens because
FileUpdater
incordova-common
checks args strictly. (The oldercordova-common
, does not check args strictly)Therefore this PR updates tests' directory structure in order to statisfy the correct args. Detecting
config.xml
incordova/prepare
is also improved accroding to the new tests' directory structure.Testing
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)