apache / cordova-windows

[DEPRECATED] Apache Cordova Windows
Apache License 2.0
203 stars 171 forks source link

change temporary directories for tests #324

Closed knight9999 closed 5 years ago

knight9999 commented 5 years ago

Platforms affected

windows

Motivation and Context

Fixing following spec error

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

knight9999 commented 5 years ago

@erisu Thanks! I updated this PR.

oliversalzburg commented 5 years ago

Just in case this is related: https://github.com/apache/cordova-common/issues/64