Skip to content

Commit

Permalink
cli: Remove .spec from ts files (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Jun 30, 2021
1 parent 7314c66 commit 94f08cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ incremented for features.

## [Unreleased]

### Breaking Changes

* cli: Remove `.spec` suffix on TypeScript tests files ([#441](https://github.com/project-serum/anchor/pull/441)).

## [0.10.0] - 2021-06-27

### Features
Expand Down
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn init(cfg_override: &ConfigOverride, name: String, typescript: bool) -> Result
let mut deploy = File::create("migrations/deploy.ts")?;
deploy.write_all(template::ts_deploy_script().as_bytes())?;

let mut mocha = File::create(&format!("tests/{}.spec.ts", name))?;
let mut mocha = File::create(&format!("tests/{}.ts", name))?;
mocha.write_all(template::ts_mocha(&name).as_bytes())?;
} else {
let mut mocha = File::create(&format!("tests/{}.js", name))?;
Expand Down Expand Up @@ -1019,7 +1019,7 @@ fn test(
if let Some(ref file) = file {
file
} else if ts_config_exist {
"tests/**/*.spec.ts"
"tests/**/*.ts"
} else {
"tests/"
},
Expand Down

0 comments on commit 94f08cd

Please sign in to comment.